Restore accidentally deleted data (SQL Server 2000) -- Log Explorer post)

Source: Internet
Author: User
I accidentally deleted more than one thousand pieces of data from the database on the client side, but I didn't back up the data before. It was really depressing. Later I found a tool on the Internet, which was very convenient to use, let me escape.
First, let's take a look at the interface:

Enter the server address, user name and password, and click Connect to enter the following interface:

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:

We can see that there are many functions in the menu on the left. To restore data, first we need to view the logs and find the log records of misoperations. Click view log under browse:

In this way, we can see all the operation logs of this database. We can filter out what we need based on the date and other conditions:

After the log is filtered, it is time to export the data. This tool provides two methods: First, export the data to an XML or HTML file (corresponding to the export to file in the left menu ), the second is to create a new table directly in the database, and then import the data (export to SQL ).
Let's take a look at the import to SQL. First, click the export to SQL option:

 

Enter the database and table name, and then finish.
In this way, there are several tables in your data database:
Testtable
Testtable_dll
Testtable_details
Testtable_keys
Testtable_login

The recovered data is in the testtable_details table, but the data format has changed. You also need to write the stored procedure or use other methods to import it to the original table.

Related Article

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.