Link to home
Start Free TrialLog in
Avatar of Viggee
Viggee

asked on

Recreating MSDB Database

I have accidentally deleted the sysobjects table in the MSDB Database..
Now the entire database is not accessible..

when i executed sp_databases, i get the error

Invalid object name :  MSDB.dbo.Sysfiles

is there any way to create the MSDB again without re-installing the SQL Server instance??

Viggee
Avatar of arbert
arbert

Do you have a backup?

If so, restore it (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_bkprst_2w1f.asp).  If not, you can use the REBUILDM utility to do it.  Rebuildm rebuilds the master database, so make sure you back it up first, cause you'll have to restore it after you run the utility.

Brett
ASKER CERTIFIED SOLUTION
Avatar of Mehul Shah
Mehul Shah
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial