Solved

How to rollback the transaction.

Posted on 2013-06-20
3
247 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

733 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