Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 rollback Transaction

Author  Topic 

msrs

32 Posts

Posted - 2007-07-31 : 04:49:27
Hi all,
How to work rollback transaction in sql server.

Thanks&Regards
msrs

pbguy
Constraint Violating Yak Guru

319 Posts

Posted - 2007-07-31 : 04:53:09
Please go through the Books online for good knowlege oftransaction

--------------------------------------------------
S.Ahamed
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-07-31 : 04:58:04
"How to work rollback transaction in sql server"

First initiate a transaction:

BEGIN TRANSACTION

then you can either use COMMIT or ROLLBACK.

You can also use IMPLICIT Transactions - then each statement automatically starts a transaction and you MUST then Commit or Rollback each one EXPLICITLY.

You can also have Nested Transactions, and Save Points, and rollback just the most recent part(s) of the transaction.

Kristen
Go to Top of Page
   

- Advertisement -