Solved

SQL 2005 Express Database is Readonly

Posted on 2010-09-21
7
827 Views
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.
0
Comment
Question by:chokka
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
7 Comments
 
LVL 5

Accepted Solution

by:
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.
0
 

Author Comment

by:chokka
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.


untitled.bmp
0
 
LVL 3

Expert Comment

by:60Cal
ID: 33728530
Do you have the S.A password? As I suspect the tables are locked by that
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:chokka
ID: 33728602
yes

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;"
0
 

Author Comment

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


NOW,

I have logged on Windows Authentication.

What i have to do?
0
 

Author Comment

by:chokka
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: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0.1600.22+((SQL_PreRelease).080709-1414+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Alter+Login&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

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: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.1399&EvtSrc=MSSQLServer&EvtID=15535&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

Open in new window

0
 

Author Comment

by:chokka
ID: 33728691


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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
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…

635 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