SQL 2005 Express Database is Readonly

Posted on 2010-09-21
Last Modified: 2012-06-27

alter database [enrollmentdb] set read_write

I am getting these errors
Msg 5011, Level 14, State 5, Line 1
User does not have permission to alter database 'enrollmentdb' or the database does not exist.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.

Becuase of this issue, i am not able to modify the design of table.
Question by:chokka
  • 5

Accepted Solution

epochasset earned 500 total points
ID: 33728381
Go into SQL server security settings and make sure your login has 'dbo' access to the database, or that your login is tagged as a sys admin.

Author Comment

ID: 33728524

1) This is an attached database. This database will used locally for all our client machines.

2) I am not able to find Username ( i.e sa ), under Login.

I have attached the screen shot of this issue.


Expert Comment

ID: 33728530
Do you have the S.A password? As I suspect the tables are locked by that
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.


Author Comment

ID: 33728602

username : sa
password : chokka123

But in .net connection string, i mentioned as follows ..

"Data Source=CHOKKA\SQLExpress;Integrated Security=true; AttachDbFilename=C:\Enrollment Form\EnrollmentDB.mdf;User Instance=true;"

Author Comment

ID: 33728642
Earlier, i was logged on sa / chokka123..


I have logged on Windows Authentication.

What i have to do?

Author Comment

ID: 33728667

On trying to provide

dbo setting for the username sa

i am facing these issues
TITLE: Microsoft SQL Server Management Studio

Alter failed for Login 'sa'.  (Microsoft.SqlServer.Smo)

For help, click:


An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)


Cannot set a credential for principal 'sa'. (Microsoft SQL Server, Error: 15535)

For help, click:



Open in new window


Author Comment

ID: 33728691

Either using Windows Authentication or SA user authentication, I am not able to login to the database

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS SQL Server - Looking to filter rows based on column value 3 36
Update a summary table with values from detail records 6 25
Help  needed 3 22
Sql Server group by 10 25
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now