SQL Server(SQLEXPRESS) Service

北慕城南 提交于 2021-01-28 12:12:05

问题


I am trying to start SQL Server(SQLEXPRESS) service from Sql Server Configuration Manager. I got following error:

The request failed or the service did not respond in a timely fashion. Consult the event log or other application error logs for details.

I checked out error logs. Here is the error:

initerrlog: Could not open error log file 'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Log\ERRORLOG'. Operating system error = 3

How can I achieve this?


回答1:


You need to make sure that the account SQL Server is operating under has write permissions to 'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Log, after you've verified that the directory actually exists.

First go to Services (Control Panel/Administrative Tools/Services) and check which account SQL Server is running under. Probably NT Service\MSSQL$SQLEXPRESS

Then go to 'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL' and right click on the "Log" folder and click properties. Then go to the Security Page. If MSSQL$SQLEXPRESS is listed, ensure that it has "Full Control" if it doesn't, click the "Edit" button and give it full control. If it's not listed, click "Edit" and then on the "Permissions for Log" dialog click add and add MSSQL$SQLEXPRESS.



来源:https://stackoverflow.com/questions/18001260/sql-serversqlexpress-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!