Use Log E to restore data after SqlServer2000 accidentally deletes data

Source: Internet
Author: User
Tags log e
Use log E to restore data after sqlserver2000 accidentally deletes data

A few days ago, because I accidentally deleted the data in the database, there was an old backup data, which could not be used in any way. Later I found it online for a long time and found that I used Log Explorer as a good tool.

First, let's take a look at the interface:

 

Here I use integration verification: click "Connect" to go to the next page.

 

Here, select the database for data recovery and use on-line log (if you back up the file again, you don't need to use this tool, and you can use SQL directly ). Click attach to go to the following interface:

 

At the beginning, I was in the test table.The delete statement is executed,

 

Now, you need to click filter log records in log category E, select the test table in the table filter item, and click Apply"

 

Then return to the view log page as follows:

 

There are two rows of delete_rows! Right-click on the top and select "undo transaction" to generate a SQL statement text recovery. SQL

 

The text content is as follows:

Set identity_insert [DBO]. [test] On

Insert into [DBO]. [test] ([ID], [name]) values (1, 'test ')

Insert into [DBO]. [test] ([ID], [name]) values (2, 'dss ')

Set identity_insert [DBO]. [test] Off

After the query analyzer re-executes the following statements, it can be restored. ---- End

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.