Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

c# sql transaction multiple connections

using(System.Transaction.TransactionScope myScope = new TransactionScope()){
  //all of your sql connections and work in here

  //call this to commit, else everything will rollback
  myScope.Complete();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #transaction #multiple #connections
ADD COMMENT
Topic
Name
4+9 =