SQL Server Express CREATE DATABASE权限在数据库"master"中被拒绝 [英] SQL Server Express CREATE DATABASE permission denied in database 'master'

查看:89
本文介绍了SQL Server Express CREATE DATABASE权限在数据库"master"中被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在类库中创建了用户控件,然后将其导入为ActiveX控件,然后读取了SQL Express 2005数据库(我已使用Ms Access表单来测试ActiveX控件)

i have created the User Control in class library then import this as ActiveX control then read the SQL express 2005 database (I have used Ms Access form for testing the ActiveX control )

Exception Details: System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in database 'master'.
An attempt to attach an auto-named database for file C:\DataDB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.



在此先感谢......



thanks in advance......

推荐答案

错误消息显示:存在具有相同名称的数据库,或者无法打开指定的文件,或者它位于UNC共享上." 检查数据库是否不存在.如果不是,请检查您是否对要在其中创建文件的文件夹中的文件具有读写访问权限.

如果仍无法解决问题,请在此处尝试以下建议: http://www.aspspider.com/resources/Resource170. aspx [ ^ ]
As the error message says: "A database with the same name exists, or specified file cannot be opened, or it is located on UNC share." Check the database does not already exist. If it doesn''t, check you have read and write access to files in the folder you are trying to create it in.

If that doesn''t sort it, try the advice here: http://www.aspspider.com/resources/Resource170.aspx[^]


这篇关于SQL Server Express CREATE DATABASE权限在数据库"master"中被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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