Consider the following scenario:
- You rename the sa account for an instance of Microsoft SQL Server 2005.
- You try to upgrade this instance of SQL Server 2005 to SQL Server 2008.
Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
Additionally, you may find the following error messages in the SQL Server setup log file: <date> <time> spid6s Executing msdb.dbo.sp_syspolicy_create_purge_job <date> <time> spid6s Error: 515, Severity: 16, State: 2.
<date> <time> spid6s Cannot insert the value NULL into column 'owner_sid', table 'msdb.dbo.sysjobs'; column does not allow nulls. INSERT fails.
<date> <time> spid6s Error: 912, Severity: 21, State: 2.
<date> <time> spid6s Script level upgrade for database 'master' failed because upgrade step 'sqlagent100_msdb_upgrade.sql' encountered error 515, state 2, severity 16. This is a serious error condition which might interfere with regular operation and the database will be taken offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. 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.
<date> <time> spid6s Error: 3417, Severity: 21, State: 3.
Note The SQL Server setup log file is usually named SQLServer_ERRORLOG_yyyy-mm-ddThh.mm.ss.txt and is located in the following folder: <date> <time> spid6s Cannot insert the value NULL into column 'owner_sid', table 'msdb.dbo.sysjobs'; column does not allow nulls. INSERT fails.
<date> <time> spid6s Error: 912, Severity: 21, State: 2.
<date> <time> spid6s Script level upgrade for database 'master' failed because upgrade step 'sqlagent100_msdb_upgrade.sql' encountered error 515, state 2, severity 16. This is a serious error condition which might interfere with regular operation and the database will be taken offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. 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.
<date> <time> spid6s Error: 3417, Severity: 21, State: 3.
<SQL Install Directory>\100\Setup Bootstrap\log\yyyymmdd_hhmmss