EXEC sp_attach_db @dbname = N'rs_ds', @filename1 = N'C:SQLrs_ds_dat1.mdf', @filename2 = N'C:SQLrs_ds_dat3.ndf', @filename3 = N'C:SQLrs_ds_dat4.ndf', @filename4 = N'C:SQLrs_ds_dat2.ldf'
Note: SQL Server 7.0 databases can be attached to both SQL Server 7.0 and SQL Server 2000 databases.
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
Do you have comments on this Ask the Expert Q&A? Let us know.
Dig Deeper on SQL Server Backup and Recovery
Related Q&A from Greg Robidoux
Avoid restoring your SQL Server database to solve the SQL Server error message "server out of memory." The problem could be the memory settings.continue reading
Find out how to restore data from a corrupt database.continue reading
Back up tables from a SQL Server database to a file with these commands.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.