J
João Santa Bárbara
Hi all
i have this problem .
i have 2 tables ( they are not master detail ) 2 simple tables, and i´m
doing a simple update just like this
try
Trans = Con.BeginTransaction
..........
DataAdpater1.Update(Table1) -> '10 rows Inserted in DataBase
DataAdapter2.Update(Table2) -> '10 rows Inserted in DataBase Sucess and
10 Unsucess
Trans.commit
cacth ex as exception
Trans.rollback
end try
Every Time i have an error i will run this code again ... and in the first
time i have done the rollback but in the second time all the records that
have been inserted ( in the first time ) are not inserted in the 2 time.
i saw all rows in the datatable and the row state is Unchanged when they
suposed to be Added ..
can someone help me .. ?
thks
JSB
i have this problem .
i have 2 tables ( they are not master detail ) 2 simple tables, and i´m
doing a simple update just like this
try
Trans = Con.BeginTransaction
..........
DataAdpater1.Update(Table1) -> '10 rows Inserted in DataBase
DataAdapter2.Update(Table2) -> '10 rows Inserted in DataBase Sucess and
10 Unsucess
Trans.commit
cacth ex as exception
Trans.rollback
end try
Every Time i have an error i will run this code again ... and in the first
time i have done the rollback but in the second time all the records that
have been inserted ( in the first time ) are not inserted in the 2 time.
i saw all rows in the datatable and the row state is Unchanged when they
suposed to be Added ..
can someone help me .. ?
thks
JSB