- Restore Database Backup (of course you have automated backups)
- Right Click Database -> Tasks -> Restore -> Database
- Select From device:
- Find the .bak file
- Follow the prompts
- Export data from source table to destination table
- Right Click Database -> Tasks -> Export Data...
- Fill in the source database / server. Next.
- Fill in the destination database / server. Next.
- Choose Write a query to specify data to transfer. Next.
- Enter the query for data you want to copy. Next.
- For Destination select the target table. Next.
- Click the Edit button in the Mapping column. OK.
- Check the Enable Identity Insert column. OK.
- Preview, etc, and run (Next, Next, Finish, etc)
SQL Server 2005: Restoring Data to a Table with an ID column
I deleted some data from a table today that I shouldn't have. With a few steps in SQL Server Management Studio, I was able to recover the data.
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment