Solved

How to rollback the transaction.

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Contained Database Collations 6 27
Safely Uninstall SQL Server 2008 R2 Express 3 60
SQL compatability in SQL 2016 2 31
xpath sql query 2008 8 41
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

11 Experts available now in Live!

Get 1:1 Help Now