Solved

How to rollback the transaction.

Posted on 2013-06-20
3
241 Views
Last Modified: 2013-06-20
I have accidently updated the table with wrong condition.How to roll back or undo it.
0
Comment
Question by:searchsanjaysharma
3 Comments
 
LVL 11

Accepted Solution

by:
Louis01 earned 250 total points
ID: 39261814
If you are not in a transaction, your only option is to restore a backup. You can restore the backup in a different db name and UPDATE from the restored DB.

If you are still in a transaction:

ROLLBACK TRANSACTION
GO

Open in new window

0
 

Assisted Solution

by:Duldol
Duldol earned 250 total points
ID: 39261818
Give ApexSQL a try. it can read the transaction logs and recover data.

http://www.apexsql.com/sql_tools_log.aspx
0
 

Author Closing Comment

by:searchsanjaysharma
ID: 39261829
tx
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now