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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restore SQL "data" folder for testing

Status
Not open for further replies.

CGehlhausen

Programmer
Dec 17, 2004
14
US
I was given a backup of a database - actually I was given the "data" folder - is that the same as a backup?. I need to know how to take that backup and load it up into SQL Server 7, so that I can write import code for this DB. I don't need the database for any other purpose than testing.

I was told to create a new database and then do the restore database and select the backup, but i dont seem to have any way to select that backup to restore. It appears you can only restore an old version of the new database that was created and not a backup of another database.

Does anyone know how to restore the backup i was given?

Thanks.
 
The "data" folder should have a ".mdf" file in it.

Without creating a new database first, you can Attach the file into a new database (right click on Databases in Enterprise Manager, All Tasks/Attach Database... and follow the steps.

This will create a new DB for you, which should be identical to the original one.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top