* In the "Select the Transfer method" screen, leave "use the detach and attach method" option checked
It gave me an error (see below). I can manually detach the database, create a copy within Windows, and re-attach both databases. However, I can't do the same thing with the GUI. It's a small annoyance, but it would be good if I could do it with the GUI as I regularly create copies of a database to test out different scenarios.
It appears to be a permissions issue. I am using Windows 7. Perhaps the account that SQL Server Agent is using does not have administrative privileges?
Here's the result I got ------->
- Execute SQL Server Agent Job (Error)
In the Event data ------>
Event iD 12550:
OnError
NT Service\SQLSERVERAGENT
localhost_localhost_Transfer Objects Task
....
Access to the path 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\database1_new.mdf' is denied. StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalCopy(String sourceFileName,
String destFileName, Boolean overwrite, Boolean checkHost) at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.CopyFile(String sourceFileName, String destinationFileName, Boolean overwriteOnExist)
Object reference not set to an instance of an object. StackTrace: at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSpAttachDetach()
Reattaching the database database1 to source since error has occurred