CodeCopy

January 3, 2012

Error while copying a Database

Filed under: c# — mazzoo @ 08:07

If you receive a “Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSMOTransfer()” or “End of package execution.” while trying to copy a database on the MSSQL Server.

The reason can be that a file with the new Database name already exist on the filesystem. We encountered this when we renamed Database X to X_Old, and tried to copy database Y to X. This cannot be done, because database X_Old is still associated with the filename X.

Either delete the conflicting database, or rename the file on the file system.

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.