
MODIFY FILE (name = 'MSDB_Log', newname = 'MSDBLog') Īfter completing above steps, issue has been resolved and SQL Server services started successfully. MODIFY FILE (name = 'MSDB_Data', newname = 'MSDBData') ALTER DATABASE msdb Then executed following command to fix the file names issues ALTER DATABASE msdb

As mentioned earlier, first we started SQL Server with trace flag 902.We needed to use trace flag 902 to start SQL Server which would allow us to bypass the script upgrade mode and he find the cause of the issue and fix it. We usually see this type of an error when we execute the upgrade script during the first restart of SQL Server after the service pack or cumulative update installation.Īs we suspected the auto install of “SQL Server 2016 Service Pack 2 Cumulative Update (CU) 17 KB5001092” was causing our issue. Now we need to figure out what is wrong with MSDB system database. When we looked at their errorlog for the cause of failure just before the generic error of “script upgrade”, we saw it gives an error about MSDB database. This is an informational message only no user action is required. SQL Trace was stopped due to server shutdown. For more information about how to rebuild the master database, see SQL Server Books Online. Restore master from a full backup, repair it, or rebuild it. We must examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that the script upgrade steps run to completion.Įrror: 3417, Severity: 21, State: 3. If the error happened during upgrade of the ‘master’ database, it will prevent the entire SQL Server instance from starting. This is a serious error which might interfere with regular operation and the database will be taken offline.


Script level upgrade for database ‘master’ failed because upgrade step ‘sqlagent100_msdb_upgrade.sql’ encountered error 598, state 1, severity 25. File ‘MSDBLog’ does not exist.Įrror: 912, Severity: 21, State: 2. SQL SERVER – Error: 5041, Severity: 16, State: 1. When one of our clients tried to connect to their SQL Server, they got an Error 3417, and they couldn’t restart the SQL Server Instance.

