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

Recover SQL files

Status
Not open for further replies.

nyjg

IS-IT--Management
Joined
Sep 21, 2001
Messages
1
Location
US
Help.

We lost one of our NT boxes, but was able to save the SQL files. How can I get them to be recognized in an new install of SQL7?

The previous version of SQL that created this DB is gone.

THanks,

J
 
Check out SP_ATTACH_DB. Example below.

EXEC sp_attach_db @dbname = N'pubs',
@filename1 = N'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs.mdf',
@filename2 = N'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs_log.ldf'

Ashley L Rickards
SQL DBA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top