June 26, 2002 06:26 PM

Rolling Back a Transaction in the Transaction Log File

Rating: (0)
SQL Server Magazine
InstantDoc ID #25296

How can I use T-SQL to roll back the one transaction (for example, ID 0000:0010a183) that I found in the transaction log file?

To prevent data corruption, SQL Server doesn't support the rollback of individual transactions. For example, let's say that two transactions, T1 and T2, use a cash balance field. T1 adds USD 500, and T2 makes a change by using that new value. If you then roll back T1, T2 might be wrong. However, you can restore a log to a predefined mark or a point in t...

...This article is for paid Professional Members only.

Already a Professional Member? Please log in now:

NOT A PROFESSIONAL MEMBER? YOU CHOOSE:

Professional Membership

Monthly

Annual

VIP Membership

Monthly

Annual

Add a Comment

There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here
GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS