
November 20th, 2003, 04:13 AM
|
|
Junior Member
|
|
Join Date: Nov 2003
Location: italy
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Hi Rubal
Try this procedure
1) Terminate all connection to the db U want to move, setting from enterprise manager the db in 'single user mode'.
2) Keep trace of the files'names constituting your db (extention mdf (data file) ,and ldf (log file))
3) From sql query analyzer , user master, Detach the above mentioned db with the system stored procedure sp_detach_db 'dbName',true
4)From windows explorer select and copy db files to the target unit
5)From query analizer in the new instance of your db (as master), Use sp_attach_db 'dbName',
'path to data file (remember .mdf)',
'path to log file (remember .ldf)'.
Now you have moved your db from a machine to the other and it should perfectly working...
Try and ... Good Luck form Jluke-b
|