Solving development problems  |  About this blog

Archive for the ‘attach database’ tag

Database cannot be upgraded because it is read-only or has read-only files. Make the database or files writeable, and rerun recovery.

If you have faced this problem when trying to attach your MSSQL database just copy MDF and LDF file to some directory where MS SQL service has full rights. It is usually something like this

c:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\Backup