简体   繁体   中英

SQL Server 2012 cannot copy Database

I am working with SQL server 2012. I want to copy a database along with all the data. I just want to create a dev DB.

I know SQL Server 2012 has a Copy Database... wizard. But when I run that wizard, I get an error on the last step:

在此处输入图片说明

On error, it tells me that error log in inside a text file on the shown path. When I go to that path, there is no such file there.

Can anyone please help me with this?

I had to do it the other way. I created an empty DB and used import wizard to import all the data and the schemas. This worked without any error. But I still don't know why the Copy Wizard didn't work.

检查事件日志,如果您使用备份和还原模式,请将其更改为分离和附加模式。

The file path is relative to the server. This is because the copy database wizard (CDW) creates a SQL Agent job to do the work. The file is the execution log for the agent job.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM