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

Always On FailOver Events

SSAS Cube or Database backup with Powershell command "Backup-AsDatabase"

The transaction log for database is full due to 'OLDEST_PAGE'