I have attached the database to the SQL server 2005, but after it got attached it is showing read-only.
Can anyone help why it is showing this.
Any help would be appreciated.
Database Read-Only Problem
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 21, 2011, 2:14 AM EST
Here is the few workaround you can try out:
1) Make sure it wasn't read-only when you detatched it?
ALTER DATABASE MyDatabaseName SET READ_WRITE
Add WITH ROLLBACK IMMEDIATE if the DB is in use and its doesn't let you.
2) In the admin tools (Control Panel)go to services , open the one for SQL Server(SQLEXPRESS) ,go to log on tab ,change the login credentials to Local System Account, restart the service and then try to attach the database again.
Please mark "Do you like the answer" if it helps you.
Thanks.