Can anyone provide conceptual guidance on copying my database to another server. The BOL list a number of stored procedures that appear to be designed for this problem. I have never done the copy before and would like to hear the story from someone who has been there before.
The best I can determine the process runs something like this:
1) use sp_dboption 'MyDatabase', 'offline', 'TRUE' to put the database offline
2) use sp_detach_db = 'MyDatabase' so the files can be copied and moved
3) use sp_create_removable to make it removable
3) use sp_certify_removable to check it before moving forward
4) copy c:\mssql7\data\myData.mdf to a removable media
5) use sp_attach_single_file_db 'MyDatabase','e:\myData.mdf' to attach the database
to my other server.
Any advice will be appreciated.
The best I can determine the process runs something like this:
1) use sp_dboption 'MyDatabase', 'offline', 'TRUE' to put the database offline
2) use sp_detach_db = 'MyDatabase' so the files can be copied and moved
3) use sp_create_removable to make it removable
3) use sp_certify_removable to check it before moving forward
4) copy c:\mssql7\data\myData.mdf to a removable media
5) use sp_attach_single_file_db 'MyDatabase','e:\myData.mdf' to attach the database
to my other server.
Any advice will be appreciated.