Microsoft
Software
Hardware
Network
Question : TransactionScope - Sample Code
Hello Experts,
I have a need for a transaction, that will be able to span different tables on different databases. This led me to the TransactionScope class. From what I've read online, this should be able to get 'er done. But from the code samples I've found, I haven't been able to implement it. Can someone post a working sample code for this? Nothing complex, just the ability to insert a line into two tables on two different servers, and commit the transaction.
Psuedo Code:
'Start TransactionScope
'Do insert 1 for a table on Database Server 1
'Do insert 2 for a different table on Database Server 2
'Catch any errors
'Commit if successful - Rollback if failed
'End TransactionScope
Thanks!
Maurice
Answer : TransactionScope - Sample Code
Ive never really used TransactionScope. You could use 2 sepereate transaction and just roll them both back
Random Solutions
Apache - Tomcat TCP Connection problem - CLOSE_WAIT / FIN_WAIT_2
Event ID 5000 error office11shipassert
Cisco 2950 Vlan for Voice
How do I charge for a job?
Symantec Endpoint Protection - SID 23615 HTTPS Tidserv Request 2 Detected
Making a Button on a Form Visible After Checking the Text Property of a ComboBox on the Form
net share system error 5 acces denied
What are major differences between VB.NET and C#.NET?
How can i add column name in list generic?
Symantec Antivirus 9.0.0.338 move to a new server issues!