打开日志文件C:\ Windows\system32\LogFiles\Sum\Api.log时发生错误

Jon*_*ego 13 sql-server window visual-studio-2012

我需要每天早上重新启动MS SQL服务器服务,因为我的Web客户端站点无法连接.
但是,当我启动我的服务时,它的工作原理.我不知道造成这个问题的原因.我在错误日志中找到了这个.

sqlservr (4052) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.log"  
for read only access failed with system error 5 (0x00000005): 
"Access is denied. ".  
The open file operation will fail with error -1032 (0xfffffbf8).

sqlservr (3000) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.chk"  
for read / write access failed with system error 5 (0x00000005): "Access is denied. ".  
The open file operation will fail with error -1032 (0xfffffbf8).
Run Code Online (Sandbox Code Playgroud)

希望有人可以帮我解决这个问题.

小智 21

您的serviceaccount需要访问该文件夹:

C:\Windows\System32\LogFiles\Sum
Run Code Online (Sandbox Code Playgroud)

转到该文件夹​​并添加具有读/写权限的帐户.

http://support.microsoft.com/kb/2811566