?
Solved

How to rollback the transaction.

Posted on 2013-06-20
3
Medium Priority
?
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
Louis01 earned 750 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 750 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

Independent Software Vendors: 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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

801 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