Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

restore database to temp area

Status
Not open for further replies.

colinbell

Technical User
Jul 15, 2004
50
GB
Hi

I have my live Database CCCInternet which has a backup performed this morning

I don't want to touch the live Database (because of work done this morning) but I'd like to restore CCCInternet.bak to a temporary Database (I don't want to overwrite anything that is live) and compare one particular table to the live Database

thanks
ian
 
Not sure what you mean by 'temporary' but the easiest way is to use EM to restore the back up database on to a new database. Or use the following in the QA:

USE master
GO
RESTORE DATABASE NewDatabaseName
FROM TAPE = 'Backuptape'
GO
 
I would use your install disk and install a new instance of SQL Server. Then restore the database to that instance. Then do the compare.

If you restore it to the same instance, you will have two databases with the same name and SQL Server will not know which one to use. To restore to the same instance requires changing the name of the database/files. If you have to do it this way, I suggest detaching the original database then restoring the old one. Change the name of the old one and then reattach the original/current one.

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top