I have:
SQL Server 2008
Database Name: database1
I had taken backup from "database1" nearly one month ago. Now, by someway, "database1" is messed up in some tables.
So I want to recover only those tables from my last backup.
I am trying to make another database named "database2" and restore on it with old backup.
I'm afraid to restore from backup file, which may restore in "database1", I want to re-store in only 'database2' (which is new)
Restore a database to a new location; optionally rename the database using SSMS. Connect to the appropriate instance of the SQL Server Database Engine, and then in Object Explorer, select the server name to expand the server tree. Right-click Databases, and then select Restore Database.
Click Timeline to access the Backup Timeline dialog box. In the Restore to section, click Specific date and time. Use either the Date and Time boxes or the slider bar to specify a specific date and time to where the restore should stop. Select OK.
If you are using SQL Server, you can set the database to single-user mode to close any open connections and prevent other users from connecting while you are changing the database name. In Object Explorer, expand Databases, right-click the database to rename, and then select Rename.
If you are using SSMS, you can:
1)right click the Databases folder
2)select Restore Database
3)Enter any name you want in the "To Database" field - this will be the database name
4)Select "From device" and find your backup file.
You may need to specify different physical file names by selecting the Options page (I don't remember if SQL server will automatically prepopulate a different file name if a database already exists with the filenames contained in the backup.
Here's where using T-SQL will help you out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With