Typ'o "sp_attach"
Sp_detach_db and Sp_attach_db Stored Procedures
To use the sp_detach_db and sp_attach_db stored procedures, 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:
http://support.microsoft.com/?scid=kb;en-us;314546#10
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003