SQL Server 2008 Service fails to start after Service Pack Installation | SansSQL

Tuesday, June 7, 2011

SQL Server 2008 Service fails to start after Service Pack Installation

Some times you may find that the SQL Server Service is not starting after applying a service pack and when you check in the Event Viewer you find the below message.

Script level upgrade for database 'master' failed because upgrade step 'sqlagent100_msdb_upgrade.sql' encountered error 598, state 1, severity 25. 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.

SQL Server Setup creates a database with the data file name temp_MS_AgentSigningCertificate_Database.mdf during the installation process and if the SQL Server setup is not able to create that database in the default data path then the above error is returned as it is not able to find the path.

To fix this issue.
  1. Go to Registry editor, To open this, go to "Run" and type "regedit" and click "ok"
  2. First go to this path and make sure that the path in the key SQLDataRoot exists. If not then give a valid path to this key.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.<instance name>\Setup
  3. Then go to this path and make sure that the path in the keys "BackupDirectory", "DefaultData" and "DefaultLog" exists. If not then give a valid path to these keys.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.<instance name>\MSSQLServer
  4. Now you should be able to start the SQL Server Service without any issues.
Once the Service is started, verify the SQL Server, databases and others to make sure everything is fine.
Also verify if the Service pack or the CU is installed correctly.

4 comments:

Anonymous said...

Thanks for this Sandesh as it helped me on a cold night in Canberra Australia. I was doing SQL2008R2 SP1 when I hit this and it fixed my problem. Don't you wish the service pack actually checked for a valid path first? Sigh.

Anonymous said...

Dear Sandesh;
You save my life I was in a noway situation with this issue....
Thanks for your valuable advice..

Anonymous said...

Sound advice, it wasn't exactly my issue but pointed me in the right direction. Checking the event log afterwards revealed issues trying to access the paths in the register and the permissions on the folders needed relaxing.

Thanks for the pointer.

Huongkvb said...

Aivivu - đại lý chuyên vé máy bay trong nước và quốc tế

Vé máy bay đi Mỹ

đăng ký bay từ mỹ về việt nam

thông tin chuyến bay từ canada về việt nam

ve may bay tu nhat ve viet nam

Các chuyến bay từ Incheon về Hà Nội hôm nay

Vé máy bay từ Đài Loan về VN

giá khách sạn cách ly ở việt nam

Chuyến bay cho chuyên gia nước ngoài

Post a Comment

Ads