附加SQL数据库 [英] attach SQL database

查看:97
本文介绍了附加SQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用称为sp_attach_db的系统内置存储过程来附加SQL数据库.
EXEC sp_attach_db @dbname = N''全景'',@ filename1 = N''C:\ Import Database \ Panorama.mdf'',@ filename2 = N''C:\ Import Database \ Panorama_log.ldf''

任何时候运行它,都会给我这个错误设备激活错误.物理文件名" C:\ Import Database \ Panorama.mdf"可能不正确."

有人可以帮我解释一下问题是什么吗?

i tried to attach an SQL database using a system built stored procedure called sp_attach_db

EXEC sp_attach_db @dbname = N''Panorama'',@filename1 = N''C:\Import Database\Panorama.mdf'',@filename2 = N''C:\Import Database\Panorama_log.ldf''

any time i run it, it gives me this error "Device activation error. The physical file name ''C:\Import Database\Panorama.mdf'' may be incorrect."

can anyone help explain to me what the problem is?

推荐答案

错误提示了问题所在.文件C:\ Import Database \ Panorama.mdf不存在.检查该文件在安装SQL Server的计算机上是否确实存在.
The error suggests the problem. The file C:\Import Database\Panorama.mdf does not exist. Check whether the file really exists on the computer where your SQL server installed.


这篇关于附加SQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆