April 16, 2003 at 10:12 am
Hi, if I accidentally executed a statement:
Delete from tblComp
on a huge table through QA, and QA never responded with 'x rows(s) affected', do any rows actually get deleted, even though it never produced a response?
Or would those first seconds I waited have all the changes rolled back?
Please tell me they get rolled back..
Thanks.
Andrew J. Hahn
Andrew J. Hahn
April 16, 2003 at 10:29 am
The easiest way to verify this is do a select on this table. if rows exists then you are safe. The Query is rolled back.
Sql server works on implicit transaction mode by default.
By default this will be on. When this is on sql*server starts a new transaction automatically when DELETE command is executed.
Hence it either deletes all rows or rollsback everthing deleted by this statement.
April 16, 2003 at 10:37 am
The table still contains thousands of records, but I just wanted to know if part of those records could have been deleted. From what you've said, its an all or none type of transaction.
Whew!
Thanks for your help.
Andrew J. Hahn
Andrew J. Hahn
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply