Select the product you need help with
Understanding and troubleshooting the Copy Database Wizard in SQL Server 2000Article ID: 274463 - View products that this article applies to. This article was previously published under Q274463 On This PageSUMMARY The Copy Database Wizard is a new utility in SQL Server
2000 that allows you to move or copy a database from SQL Server 7.0 or from SQL
Server 2000 to SQL Server 2000. The copy or move process is relatively
straightforward and it may seem like the process barely affects anything. This
article provides information on how the Copy Database Wizard works and outlines
some issues to look out for when you use the wizard. MORE INFORMATIONHow the Copy Database Wizard OperatesTo open the Copy Database Wizard:
The actual copying of the file occurs via XP_CMDSHELL which executes a command-line COPY command. This is why it is important that the account that runs the Copy Database Wizard is a memeber of sysadmin. For more information, see "Using the Copy Database Wizard" in SQL Server Books Online. The wizard performs the following steps:
Wizard Creates a Data Transformation Services (DTS) PackageThe Copy Database Wizard creates a DTS package that runs on the destination server and can be run either immediately or can be scheduled to run later. Alternatively, you can manually create a copy of the database DTS package by using the DTS Designer tool and clicking Transfer Database Task. For more information, see the Transfer Database Objects Tasks topic in SQL Server 2000 Books Online.The package is saved if it is scheduled to run on a recurring basis or one time. Therefore, the SQL Server Agent on the destination server has to be started. The Transfer Database DTS package must be treated as any other DTS package including the requirements and permissions associated with scheduling and running the package. For more information about how to troubleshoot scheduled DTS packages, see the following article in the Microsoft Knowledge Base: 269074 You can use the Copy Database Wizard with Microsoft
SQL Server 7.0 where the latter can be a source database server only. You
cannot use the wizard with versions of Microsoft SQL Server 6.x or earlier.
(http://support.microsoft.com/kb/269074/EN-US/
)
INF: How to Run a DTS Package as a Scheduled Job
Copy Database Wizard Log - DTS Package LogA log of the CDW events is stored in MSDB..sysdtspackagelog system table and is also viewable by way of SQL Enterprise Manager (SEM). To view the log, follow these steps:
Alternatively, you can configure DTS Package to produce an output file for troublshooting purpose.
Permissions to Copy the FilesThe destination SQL Server startup account must be a domain account and must have local administrator privileges on the source SQL Server server computer so that the files can be copied from the source to the destination.If the destination SQL Server is started under a local system account you may receive the following error message: Your SQL Server Service is running under the local
system account. You need to change your SQL Server Service account to have the
rights to copy files over the network. Step Error Source: Microsoft
Data Transformation Services (DTS) Package Step Error Description:Unspecified error Step Error code: 80004005 Step Error Help File:sqldts80.hlp Step Error Help Context ID:1100 Failed to create the share OMWWIZD
Be Aware that the Database DetachesAs mentioned earlier, the Copy Database Wizard detaches the source database before copying it to the destination server. Do not run the Copy Database Wizard if the database is suspect or if any other problems exist with the database that may prevent it from detaching or reattaching. Problems such as I/O errors (for example, error 823), data integrity errors (for example, Table Corrupt), or any known hardware issues (for example, SCSI port errors or controller errors in the system event log), to name a few, may be an impediment to a successful reattachment of the database.Make sure that the source database is not marked 'read only', 'offline', 'suspect', 'emergency', or 'loading' or the detach will fail. The detach would fail because the detach procedure must update the statistics in the database; if the database is in any way not accessible for writes, the statistics update fails. The following error message is generated if the detach fails due to the database being in any unwritable status: Failed to
detach the database <DatabaseName> Step Error
Source: Microsoft Data Transformation Services (DTS) Package Step Error Description:Unspecified error Step Error code: 80004005 Step Error Help File:sqldts80.hlp Step Error Help Context ID:1100 Step Error
Source: Microsoft Data Transformation Services (DTS) Package Step Error Description:Unspecified error Step Error code: 80004005 Step Error Help File:sqldts80.hlp Step Error Help Context ID:1100 Database [dbname] has [N] active connections. Database
will not be transferred. Permissions to Detach a DatabaseCertain permissions are required to detach a database. SQL Server 2000 Books Online identifies the appropriate permissions to use the wizard:
"To use the Copy Database Wizard, you must be a system administrator or a member of the sysadmin role. If you are running Microsoft Windows NT® 4.0 or Microsoft Windows® 2000, your user account must have administrator privileges on the destination server."
Ensure Destination Directory ExistsWhen using the Copy Database Wizard (CDW), at the Database File Location screen, click the Modify button and confirm that the destination directory is correct. If the directory does not exist, the CDW may fail with the following error: Step Error Source: Microsoft Data Transformation
Services (DTS) Package Step Error Description:Unspecified error Step Error code: 80004005 Step Error Help File:sqldts80.hlp Step Error Help Context ID:1100 File \\SOURCE_SERVER\OMWWIZx\Program Files\Microsoft SQL
Server\MSSQL\Data\Filename_Data.mdf cannot be copied because the destination
directory does not exist. The Move Option Removes the DatabaseBear in mind that if you choose to move a database, rather than copying it, the database is removed from the source SQL Server server. More specifically, the database is detached from the source server but is not reattached. However, the original database files (.mdf, .ndf, .ldf) remain on the source server and if you do not need those because of space considerations, you have to manually delete them. The following warning message appears in the Completing the Copy Database Wizard dialog box: Database 'Pubs' will be copied
but will be available only on the destination server. The administrator must
delete the data and log files for database 'Pubs' on the source server.
Moving LoginsA new feature of the Copy Database Wizard alleviates the issue of manually moving logins. The wizard identifies the logins corresponding to the database users and provides you with the option to move or copy those as part of moving or copying the database. Both SQL Server Standard authentication logins and Microsoft Windows NT and Microsoft Windows 2000 authentication logins are moved by the wizard.Earlier versions of SQL Server required manual intervention to move the logins associated with the database users of the database being copied or moved. For more information about transferring logins with earlier versions of SQL Server, see the following article in the Microsoft Knowledge Base: 168001
(http://support.microsoft.com/kb/168001/EN-US/
)
PRB: User Logon and/or Permission Errors After Restoring Dump
246133 Note that local Windows NT/2000 Groups and Users that are
granted login access to SQL Server cannot be transferred between different
computers. If you attempt to do this, the transfer of the login will fail. If
you click the "MORE INFO >>>" button, you can see the following root cause of the problem:
(http://support.microsoft.com/kb/246133/
)
HOW TO: Transfer Logins and Passwords Between Instances of SQL Server
"Transfer Login SourceMachine\LocalGroup1 Failed "
-or-
"Transfer Login SourceMachine\LocalUser1
Failed " Database/Files Exist or There is Insufficient Disk SpaceWhen transferring a database, the wizard detects whether or not the database exists on the destination server. The Select the Database to Move or Copy dialog box indicates that databases can be transferred with an OK status or that databases cannot be transferred either because the database Already Exists or is a System Database like the master database.A database transfer can also be stopped if the same database files already exist on the destination server. So, you may have a database named MyPubs with file names equivalent to those of the Pubs database on the destination. You will see those files destinations marked with a red X. "Files on the source have the same name as on
the destination or there is not enough free disk space on the destination."
A transfer can also be hampered by a lack of disk space on the destination server. Change drives or delete some files to allow for sufficient space. Full-Text Search Stops. Full-Text Catalog Files Not TransferredIf the database contains any full-text catalogs there are two effects of using the Copy Database Wizard to transfer it. First, searching the Full-Text (FT) catalogs is stopped by the wizard so that the database can be put in single user mode. Second, the FT catalog files are not moved by the wizard. If you try to run a full text search query on the source or destination SQL server after the Copy Database Wizard is run, you may get the following error message: Server: Msg 7616, Level 16, State 1, Line
1 Full-Text Search is not enabled for the current database. Use sp_fulltext_database to enable full-text search for the database. 303224 To perform full-text searches on the source and
destination SQL Server servers use these steps:
(http://support.microsoft.com/kb/303224/EN-US/
)
FIX: Use of the Copy Database Wizard to Copy a Database Disables Full-Text Indexing on the Source Database
"If you want to copy a database with full-text catalogs, full-text catalogs for the database are unavailable at the source server after the copy operation has been completed. You must manually repopulate full-text catalogs on the destination server.
For more information about how to move Full-Text Catalogs, see
the following article in the Microsoft Knowledge Base:
If you want to move a database with full-text catalogs, none of the associated full-text catalog files are moved when the database is moved. These files must be moved manually by the database administrator." 240867
(http://support.microsoft.com/kb/240867/EN-US/
)
INF: How to Move, Copy, and Back Up Full-Text Catalog Folders and Files
REFERENCES
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
327270
(http://support.microsoft.com/kb/327270/EN-US/
)
SQL Server 2000 Is Not Supported on Windows Server 2003 Terminal Server Application Server
PropertiesArticle ID: 274463 - Last Review: December 21, 2005 - Revision: 6.3
| Article Translations
|


Back to the top








