Heim  >  Artikel  >  Datenbank  >  sql2005 create file遇到操作系统错误5拒绝访问 错误1802

sql2005 create file遇到操作系统错误5拒绝访问 错误1802

WBOY
WBOYOriginal
2016-06-07 17:58:581829Durchsuche

尝试打开或创建物理文件 'E:\Library.mdf' 时,CREATE FILE 遇到操作系统错误 5(拒绝访问。)。

问题1:尝试打开或创建物理文件 'E:\Library.mdf' 时,CREATE FILE 遇到操作系统错误 5(拒绝访问。)。

最佳回答:

这是因为SQL Server的启动帐户(一般是system或某个操作系统管理员),对E盘根目录没有创建文件的权限。右击E盘,在属性里查看“安全”选项卡里查看用户的权限。查看启动帐户是谁,运行services.msc,在服务管理器里找到SQL Server服务,然后看“登录”选项卡。

本人补充发现,是权限的问题。。->任务管理器:找到sqlservr.exe用户名为:NETWORK SERVICE及SYSTEM。于是把指定目录的权限加上这两个用户。完全控制 。问题就解决了。。。

如果要用sa用户登录需要对security里面的login进行设置sa的status和密码
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn