Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Migrating SQL 7 Database to another SQL 7 database

Status
Not open for further replies.

cceng

IS-IT--Management
Aug 27, 2001
104
US
We want to move our SQL server database to a temp system while we rebuild the original. After we rebuild the original we will move the databases back.

Any good suggestion on doing this? Best option for success?

Thanks!
 
It may sound hokie but I've always created a backup of the database and restored it on the new server (then reverse the process when you're done). You will have to resolve your users on the new server (and possibly adjust file locations) but other than that - its a fairly easy process. Check out sp_resolve_logins in books online.
 
You could also check out sp_detach_db and sp_attach_db in books online. These system stored procedures detach your data and log files so that you can reattach them to a new server. I think this would work also - and could be even easier...
 
Thanks!

One last question, Books Online? Do you mean Microsofts?
 
Hi there.
Sorry, I should have clarified that. I'm pasting a quote from a previous thread from tlbroadbent that spells it out quite nicely. Hope this helps. :)

When we refer to SQL Books Online (BOL), we mean the electronic books that came with SQL Server. They can be loaded onto your harddrive as part of the SQL Server or client tools setup.

If you can't find them, SQL 7.0 BOL can be downloaded from Microsoft web site at

You can view SQL 2000 BOL at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top