Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I got this error. How can I resolve it?

Failed to update database "msdb" because the database is read-only.
Could not insert a backup or restore history/detail record in the msdb database. This may indicate a problem with the msdb database. The backup/restore operation was still successful.
Processed 184 pages for database 'BakupDB', file 'BakupDB' on file 1.
Processed 2 pages for database 'BakupDB', file 'BakupDB_log' on file 1.

Sorry for the bad question.

I also get this error:

Unable to open the physical file "C:\Users\geert\Desktop\C#proj\App_Data\ASPNETDB.MDF". Operating system error 32: "32 (failed to retrieve text for this error. Reason: 15105)". Cannot attach the file 'C:\Users\geert\Desktop\C#proj\App_Data\ASPNETDB.MDF' as database 'ASPNETDB'.

This is my DB:

enter image description here

share|improve this question
    
These are two separate questions. Please separate them into two questions. –  StanleyJohns Mar 22 '13 at 18:31
add comment

migrated from stackoverflow.com Mar 22 '13 at 8:56

This question came from our site for professional and enthusiast programmers.

1 Answer

The backup program is trying to update msdb database but cannot because either the database has only read permissions or the user running the program does not have permissions to write to the database.

share|improve this answer
    
I got another error see question –  Will_G Mar 22 '13 at 7:53
    
ASPNETDB.MDF should be included using VisualStudio. –  suspectus Mar 22 '13 at 7:59
    
ASPNETDB.MDF is included I think so –  Will_G Mar 22 '13 at 8:02
    
It's not in the expected location then C:\Users\geert\Desktop\C#proj\App_Data\ASPNETDB.MDF –  suspectus Mar 22 '13 at 8:05
    
how can I see or that the expected location is ? –  Will_G Mar 22 '13 at 8:12
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.