Re: Copying a database between servers
- From: Edward Diener <eddielee_no_spam_here@xxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 00:52:16 -0400
David Gugick wrote:
Edward Diener wrote:
Is backup and restore the best way to simply copy a database from one SQL Server 7.0 database with 'select' access to another SQL Server 7.0 database on another machine with 'all' access ? Or is there another easier way with the SQL Server 7.0 tools ?
You could try detaching and reattaching the database using sp_detach_db and sp_attach_db / sp_attach_single_file_db. You would need to stop the server and copy the data and log files and attach the copy. You wouldn't need to detach in this case. When you attach the copy, you'll likely get an error related to the log file since the data file points to a log file in use by the original database. SQL Server 2000 will create a new log file and attach. I'm not sure if SQL 7 will do the same, but it likely will.
Can this detach/attach be done with Enterprise Manager and, if not, how do I do it ?
I tried to backup and restore but SQL Server 7 would only allow me to backup on the machine where the server resides in which is the database I want to backup, and would only allow me to restore from the machine where is the server to which I wanted to restore the database. Now that is what I call flexibility ! Why I can not backup and restore to and from any machine to which I am connected and have directory rights I do not know.
.
- Follow-Ups:
- Re: Copying a database between servers
- From: Steen Persson
- Re: Copying a database between servers
- From: David Gugick
- Re: Copying a database between servers
- References:
- Copying a database between servers
- From: Edward Diener
- Re: Copying a database between servers
- From: David Gugick
- Copying a database between servers
- Prev by Date: Re: Copying a database between servers
- Next by Date: Re: Copying a database between servers
- Previous by thread: Re: Copying a database between servers
- Next by thread: Re: Copying a database between servers
- Index(es):
Relevant Pages
|