Link to home
Start Free TrialLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

copy a database

How do I copy a SQL server database?  This is SQL server 2000.
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

You can either:
1. Backup and restore or
2. Detach, copy data files and attach.
Avatar of lundnak
lundnak

You want to copy the database from SQL 2000 to SQL 2008?

There are several methods.
Detach the database
Copy the database files to the SQL 2008 server.
Re-Attach the database.
Setup the logins on the SQL 2008 Server.
   http://support.microsoft.com/kb/246133
Change Compatibility mode to SQL 2008 for the database and Page Verify option to "CheckSum"


Another method is to backup the SQL 2000 database.
Restore the backup file to the SQL 2008 server
Complete the last three steps described above.
Here is a MS article describing the attach/detach method.
http://support.microsoft.com/kb/224071
Avatar of HLRosenberger

ASKER

No I want to make a copy of the 2000 database within the same server, with a different name of course.
ASKER CERTIFIED SOLUTION
Avatar of bitref
bitref
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks