Avatar of punjwani
punjwani
Flag for United States of America asked on

Readonly Database - SQL Management Studio Express

I have database setup on one server using SQL 2005 now when I try to detach and attached that database on workstation with SQL Server Express 2005, it came up as Readonly message I get this message  when try to alter database.

Message is "Failed to Update databse "database name" because the database is read-only. (Microsoft SQL Server, Error: 3906)".

Server: Windows 2003, SQL 2005, Database compatibility level is SQL Server 2000 (80)

Workstation: Windows XP Professional, SQL Express 2005, Compatibility level SQL Server 2005 (90)

Note: I am not able to change the compatibility level on workstation because its readonly.

Thanks
Microsoft SQL Server 2005

Avatar of undefined
Last Comment
punjwani

8/22/2022 - Mon
hongjun

Did you happen to attach from a CD?
Make sure the mdf file is not read-only
punjwani

ASKER
I checked both files mdf and ldf attributes are not Read-only.
ASKER CERTIFIED SOLUTION
ptjcb

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
punjwani

ASKER
I copied database in seprate folder on C drive, now I copied it in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data and it worked.

Thanks I think it was permission issues, it resolve by copying it to default folder.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes