Hi Peter,
How is this issue going on your side? Please feel free to let me know. To
use the sp_detach_db and sp_attach_db stored procedures to move user
databases, please follow these steps:
1. Detach the database on the source server by using the sp_detach_db
stored procedure. You must copy the .mdf, .ndf and .ldf files associated
with the database to the destination server. See this table for a
description of the file types:
+======================+======================+
| File name extension | Description |
+======================+======================+
| .mdf | Primary data file |
+======================+======================+
| .ndf | Secondary data file |
+======================+======================+
| .ldf | Transaction log file |
+======================+======================+
2. Attach the database on the destination server by using the sp_attach_db
stored procedure and point to the files you copied to the destination
server in the preceding step.For additional information about how to use
these methods, click the article number below to view the article in the
Microsoft Knowledge Base:
224071 INF: Moving SQL Server Databases to a New Location with Detach/Attach
http://support.microsoft.com/?id=224071 Thanks for using MSDN newsgroup.
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights.