msdb database is in Recovery Pending state.

Suddenly one of my SQL Server named instances system database named msdb database gone into Recovery Pending state as shown in the below image.


Don't worry just check the data and log file of the database  by running SELECT * FROM sys.master_files, if you can find the data and log file of the databases are in same path , your job would be very easy, just run the below command.

use master
go
ALTER DATABASE msdb SET ONLINE

The above command will bring the database online.


Comments

Popular posts from this blog

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out

Pre login Handshake or Connection Timeout Period

Transparent Data Encryption(TDE) with Master Key and Certificate in SQL Server