Re: Copying a database between servers
- From: "David Gugick" <davidg-nospam@xxxxxxxxxx>
- Date: Thu, 28 Apr 2005 23:42:23 -0400
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.
--
David Gugick
Imceda Software
www.imceda.com
.
- Follow-Ups:
- Re: Copying a database between servers
- From: Edward Diener
- Re: Copying a database between servers
- References:
- Copying a database between servers
- From: Edward Diener
- Copying a database between servers
- Prev by Date: Copying a database between servers
- Next by Date: Re: Copying a database between servers
- Previous by thread: Copying a database between servers
- Next by thread: Re: Copying a database between servers
- Index(es):
Relevant Pages
|
Loading