无法更新数据库"x".因为数据库是只读的.

问题描述:

由于数据库是只读的,因此无法更新数据库"C:\ PROJECTS \ DVD \ DVD \ APP_DATA \ DVD_DATABASE.MDF".


而相同的数据库在Visual Studio中可以正常工作.

Failed to update database "C:\PROJECTS\DVD\DVD\APP_DATA\DVD_DATABASE.MDF" because the database is read-only.


while the same database is working fine in visual studio.

阅读::

阅读only-db-error [
Read this :

read-only-db-error[^]

hope it helps :)