How to copy database to another SQL server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nosipho
    New Member
    • Nov 2006
    • 27

    How to copy database to another SQL server

    Hello guys,

    I need to copy a database in SQL 2000 to another SQL2000 server. I tried backing up the database to a folder then restore it but it's not happening. Please help to know how to copy database to another SQL server, or a disk and restore it to another SQL server.I don't know whether this was discussed before If it was, please forgive me.

    Thanks in advance.
  • harshathalye
    New Member
    • Dec 2006
    • 3

    #2
    What error you got when you tried to restore from backup?

    Other way is to script entire database schema and run it on another server to create empty database structure and then using either BCP/DTS to populate data.

    Comment

    • shubhangi
      New Member
      • Sep 2006
      • 24

      #3
      Hello,

      Stop the sql services of a source server, copy .mdf & .ldf file to target server & then attach the db in target server as follows
      1. In Enterprise manager, right click on databases & go in all tasks & then attach db
      2. select .mdf file from the copied location & attach it

      u will see db is copied.

      Shubhangi

      Comment

      Working...