T
TheMaxx
I have two tables in dataset, and appropriate TableAdapters.
How can i update both tables, but in transaction?
I other words:
THIS:
MyDSTableAdapters.Table1TableAdapter a1 = new ...
MyDSTableAdapters.Table1TableAdapter a2 = new ...
a1.Update(dt1);
a2.Update(dt2);
but where to put transaction ?
P.S. DataSet and TableAdapters are generated via VS 2005 form SQL 2000
ServerExplorer drag n' drop
How can i update both tables, but in transaction?
I other words:
THIS:
MyDSTableAdapters.Table1TableAdapter a1 = new ...
MyDSTableAdapters.Table1TableAdapter a2 = new ...
a1.Update(dt1);
a2.Update(dt2);
but where to put transaction ?
P.S. DataSet and TableAdapters are generated via VS 2005 form SQL 2000
ServerExplorer drag n' drop