SQL Server Express 文件夹权限
我正在使用 Microsoft SQL Server Management Studio 与 SQL Server Express 实例进行交互。我想附加位于我的文档文件夹 C:\User\ME\documents\foo
中的数据库(.mdf 文件)。不幸的是,由于权限问题,Server Management Studio 提供的文件浏览器无法访问我的文档文件夹。
我不想通过将“所有人”添加到允许访问的用户列表来解决此问题,那么我可以添加什么用户以便 Management Studio 可以访问 documents 中的
?.mdf
文件\foo
I'm using Microsoft SQL Server Management Studio to interact with a SQL Server Express instance. I want to attach a database (.mdf file) that is located in my documents folder C:\User\ME\documents\foo
. Unfortunately the file browser that Server Management Studio gives me cannot access my documents folder due to permissions issues.
I don't want to solve this problem by adding 'everyone' to the list of users allowed access, so what user can I add so that Management Studio can access the .mdf
file in documents\foo
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
允许访问运行 sql server 实例服务器的帐户。 (检查services.cpl)
如果它作为内置程序之一运行,您可能不希望授予它对 MyDocuments 的访问权限。
如果您创建一个特定帐户来运行 sql server,请确保授予它所有相关权限,否则您将破坏它。
就我个人而言,我会省去很多麻烦,只需将其移动到“您”的某个文件夹中,内置帐户就可以看到。
Allow access to the account that the sql server instance server is running as. (Check in services.cpl)
If it's running as one of the BuiltIns, you might not want to give it access to MyDocuments.
If you create a specific account to run sql server under make sure you give it all the relevant permissions, otherwise it you'll break it.
Personally I'd save my self a lot of pain and just move it in to some folder "you" and the built in account can see.