SatishPutcha
Programmer
HI everybody,
I have an ASP pag where I am connecting to SQL2000 and inserting data into 7 tables of the SQL DB.
I am using just a single connection object for this and executing the for each of the insert statements.
Is it possible to rollback all the insert statements executed till then if there is an error in one particular insertion?
eg. If "con.execute(insert1)" was successful and so was "con.execute(insert2)" but "con.execute(insert3)" shows an error then can I rollback the first two insert statements? "con" here is the ADODB connection object and insert1/2/3 are the insert statements for different tables.
Hope my question is clear.
Thanks and Regards
satishkumar
I have an ASP pag where I am connecting to SQL2000 and inserting data into 7 tables of the SQL DB.
I am using just a single connection object for this and executing the for each of the insert statements.
Is it possible to rollback all the insert statements executed till then if there is an error in one particular insertion?
eg. If "con.execute(insert1)" was successful and so was "con.execute(insert2)" but "con.execute(insert3)" shows an error then can I rollback the first two insert statements? "con" here is the ADODB connection object and insert1/2/3 are the insert statements for different tables.
Hope my question is clear.
Thanks and Regards
satishkumar