Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL2008 RC won't attach 2005 mdf - sees it as read only
Message
From
23/06/2008 00:03:04
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Database management
Title:
SQL2008 RC won't attach 2005 mdf - sees it as read only
Miscellaneous
Thread ID:
01326060
Message ID:
01326060
Views:
83
New Vista Ultimate box. Clean install of latest SQL 2008 RC. Then installed VS 2008 and SQL Express2005.

From my XP box I detached two databases from an instance of SQL Express 2005. Copied the mdf and log files to the data folders of the two SQLs on the Vista box.

SQL 2008 MS will attach the databases to the SQL Express 2005 server, but sees them as read only. I can then change them to readable. OK. Never saw that on XP boxes but ok.

But the SQL 2008 will not allow the attach, saying the databases are read only or contain files that are read only.

Both databases re-attach on the xp sql 2005 box with no problem.

I assume I need to attach the database in 2008 with a T-sql CREATE DATABASE ... TO ATTACH TRUSTWORTHY ON but can't seem to get the syntax right.

Guidance appreciated.

TIA

Charles


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Next
Reply
Map
View

Click here to load this message in the networking platform