RE: HOW TO: Implement transaction in TableAdapter class



Hi Sengai,

The TableAdapter will not generate code that implements a transaction by
default. If you wish to make the TableAdapter commit a transaction to the
database, you have to add SQL script yourself. The simplest way is to put
BEGIN TRANSACTION, COMMIT TRANSACTION, or ROLLBACK TRANSACTION in the
stored procedure. If you want to perform transactions between TableAdapters
in or not in the same server, you can also use Distributed Transactions.
Please check the following article for more information on it.

http://msdn2.microsoft.com/en-us/library/777e5ebh.aspx

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

.



Relevant Pages