附加数据库时出现权限错误:“无法访问指定的路径” [英] Permissions error when attaching a database: "Cannot access the specified path"

查看:352
本文介绍了附加数据库时出现权限错误:“无法访问指定的路径”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行SQL Server 2012企业版。我已经下载了AdventureWorks 2012 OLTP数据文件( .mdf .ldf )。我将它们保存到在我的文档中创建的AW文件夹中,该文件在其中解压缩。我转到SQL Server Management Studio(SSMS),右键单击数据库,然后单击上下文菜单中的附加。在对话框中,单击查找。

I am running SQL Server 2012 Enterprise Edition. I have downloaded the AdventureWorks 2012 OLTP data files (both .mdf and .ldf). I saved them to the AW folder that I created in My Documents where I unzipped the file. I go to SQL Server Management Studio (SSMS) right-click on database, and click attach in the context menu. In the dialog I click find.

用户界面不允许我导航到文件夹。我尝试键入文件的完整路径,然后出现以下错误:

The UI does not allow me to navigate to folder. I try typing the full path to the file, and then I get the following error:


无法访问指定的路径或文件在服务器上。确认您具有必要的安全特权,并且路径或文件存在。

我关闭了SSMS并重新启动它,这次以管理员身份运行。同样糟糕的结果。

I closed SSMS and restarted it, this time running as the administrator. Same bad result.

这不应该那么难。成功将AdventureWorks2012数据库附加到SSMS的确切步骤是什么?

This should not be this hard. What are the exact steps to successfully attach the AdventureWorks2012 database to SSMS?

谢谢!

推荐答案

将文件放置到数据库的默认位置引擎数据文件。如果您没有重新配置任何内容,则应该是

Put your files to default location for Database Engine data files. If you didn't reconfigure anything it should be

\Program Files\Microsoft SQL Server\MSSQL11.<InstanceID>\MSSQL\Data

然后使用SSMS附加数据库。

And then Attach db using SSMS.

这篇关于附加数据库时出现权限错误:“无法访问指定的路径”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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