Thanks for reply. I backup the database to a test.mdf file. Then, when I try to restore it, how can I load the test.mdf. I use backup in sql enterprise manager, but I can't find the function to load the file.
What's detach and attach ?
1. Open Enterprise Manager
2. Drill down to the database you want to copy
3. Right click on the database
4. Select properties
5. Click the data files tab
6. Write down the 'location' for the data files.
7. Click the Transaction Log tab
8. Write down the 'location' for the transaction log files.
9. Click CANCEL to close the window.
10. Right Click the database again.
11. Click 'All Tasks' -> 'Take Off Line'
12. Open Windows Explorer
13. Copy the files you wrote down (in steps 6 and 8) to the new computer.
14. On the original computer, right click the database, then 'All Tasks' -> 'Bring On-Line'
On the new computer....
1. Open Enterprise Manager
2. Open the server group
3. Open the server name.
4. Right click on Database
5. Click 'All Tasks' -> Attach
6. Select the MDF file (that you recently copied to the new server).
7. You may want to change the database owner.
8. Click OK.
-George
Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.