[ADO.NET ERRROR]:CREATE否认数据库母版数据库的权限。附加自动命名的数据库文件HelloWorld.mdf的尝试失败 [英] [ADO.NET ERRROR]: CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file HelloWorld.mdf failed

查看:181
本文介绍了[ADO.NET ERRROR]:CREATE否认数据库母版数据库的权限。附加自动命名的数据库文件HelloWorld.mdf的尝试失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

人见过这个?

CREATE否认数据库母版数据库的权限。   附加自动命名的数据库文件的尝试   C:\ Documents和Settings \ .. \ App_Data文件\ HelloWorld.mdf失败。   具有相同名称的数据库不存在,或者指定的文件无法被   打开,或它位于UNC共享。

CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file C:\Documents and Settings\..\App_Data\HelloWorld.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

我问代表一个朋友的。我给他发这些链接:

I'm asking on a friend's behalf. I've sent him these links:

  • <一个href="http://blog.benhall.me.uk/2008/03/sql-server-and-vista-create-database.html">http://blog.benhall.me.uk/2008/03/sql-server-and-vista-create-database.html
  • <一个href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=702726&SiteID=1">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=702726&SiteID=1
  • http://blog.benhall.me.uk/2008/03/sql-server-and-vista-create-database.html
  • http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=702726&SiteID=1

推荐答案

通常所使用运行SQL Server服务将无法访问您的个人用户文件夹的用户,这就是为什么你得到的错误。您可能需要更改用于服务的凭证,或将数据库移动到另一个文件夹,而你的情况做了把戏。

Generally the user that you are using to run the SQL Server service will not have access to your personal user folders, that is why you're getting the error. You either need to change the credentials used for the service, or move the database to another folder, which did the trick in your case.

这篇关于[ADO.NET ERRROR]:CREATE否认数据库母版数据库的权限。附加自动命名的数据库文件HelloWorld.mdf的尝试失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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