附加SQL数据库

编程入门 行业动态 更新时间:2024-10-24 12:31:15
本文介绍了附加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数据库

本文发布于:2023-11-10 01:04:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573937.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据库   SQL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!