Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Unable to start services after patching - msdb110_upgrade.sql' encountered error 574, state 0, severity 16.

Question : During a recent round of patching , I've been frequently seeing msdb110_upgrade.sql' encountered error 574, state 0, severity 16 in the Event Viewer when the service for the SQL Server Instance is attempting to start.

How can I resolve this issue? The service will not currently start.

I've checked in the SQL Server Error Log file via a text editor and can see A problem was encountered granting access to MSDB database for login '(null)'. Make sure this login is provisioned with SQLServer and rerun sqlagent_msdb_upgrade.sql 

The lines in the SQL Error Log are:

2018-09-09 13:41:56.88 spid5s      Granting login access'xxxx\ID' to Msdb Database...
2018-09-09 13:41:56.89 spid5s      A problem was encountered granting access to MSDB database for login '(null)'. Make sure this login is provisioned with SQLServer and rerun sqlagent_msdb_upgrade.sql
2018-09-09 13:41:56.89 spid5s      A problem was encountered granting access to MSDB database for login '(null)'. Make sure this login is provisioned with SQLServer and rerun sqlagent_msdb_upgrade.sql
2018-09-09 13:41:56.89 spid5s      

Answer: I've experienced similar issues and on each occasion it's been a different underlying reason . The way I've approached the problem is :

Step 1: Extract the error lines from the SQL Server Error Log file

Step 2 : Start the SQL Service with the trace flag 902   -  so the start command will be :     NET START MSSQL$MYSERVICE /T902

This will give you enough time to fix the root cause ,

Step 3 : When the fix is is applied then restart the sql service but without the trace flag

 Read More on trace flags

 Trace flag 610 and High performance data loading (SQL Server DBA)

Slow SQL Server Backup and Restore with DBCC TRACEON (3004 ...

List SQL Server DBCC commands using trace 2520 – documented and undocumented commands



This post first appeared on SQLSERVER-DBA.com, please read the originial post: here

Share the post

Unable to start services after patching - msdb110_upgrade.sql' encountered error 574, state 0, severity 16.

×

Subscribe to Sqlserver-dba.com

Get updates delivered right to your inbox!

Thank you for your subscription

×