問題描述
我注意到在我們的一些服務器上重新啟動/關閉后 SQL 代理不會自動啟動(SQL 服務器啟動正常).該服務設置為在 Windows 中自動啟動.當我們手動啟動 SQL 代理時,它啟動正常.
I have noticed that SQL Agent does not start automatically after a reboot/shutdown on a few of our servers (SQL server starts up fine). The service is set to automatically start in windows. When we start SQL agent manually, it starts fine.
推薦答案
在以下路徑中添加您的 Windows 級別用戶:
Add your windows level user in following path:
點擊開始 - 運行 - Secpol.msc
Click on Start - Run - Secpol.msc
轉到:本地政策 - 用戶權限分配
確保運行 SQL 代理服務的用戶帳戶具有以下分配:
Ensure the user account your running the SQL Agent Service under has the following assignments:
作為操作系統的一部分
Act as a part of the Operating system
繞過遍歷檢查
在內存中鎖定頁面
作為服務登錄
登錄批處理作業
替換進程級令牌
如果沒有,請添加它們并嘗試重新啟動系統.您的 SQL Server 現在應該作為服務自動啟動.
If not, please add them and try restarting your system. Your SQL Server should be now be automatically starting as a service.
這篇關于服務器重新啟動時 SQL Server 代理未自動啟動的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!