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.
use master
go
ALTER DATABASE msdb SET ONLINE
The above command will bring the database online.
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