Advertisement

05.20.2008 at 07:38AM PDT, ID: 23417316
[x]
Attachment Details

Failed to update database ... because the database is read-only

Asked by VBRocks in SQL Server 2005, Microsoft Visual Basic.Net, Microsoft Visual C#.Net

Tags: SQL Server 2005, N/A, N/A

Hi, thanks for clicking...

I have 2 computers:

My primary computer is a desktop with Windows XP on it, which has SQL Server 2005 Developer Edition on it.  This computer has a SQL database on it that I want to copy to my secondary computer, so I can run the Database Enging Tuning Advisor on it, then I want to copy it back to this computer.  (Because the Database Enging Tuning Advisor on this computer won't work).

My secondary computer is a laptop with Windows Vista on it, it also has SQL Server 2005 Developer Edition on it.  

On my primary computer, I stopped SQL Server (MSSQLSERVER), and copied the dabase to a flash drive.

On my secondary computer, I plugged the flash drive in, copied the database to my harddrive, opened SQL Server, and tried to Attach the database.  When I do, I get an error that says "Failed to update database ... because the database is read-only".  It does attach it, but it is ReadOnly.

My question is, how can I get the database attached properly so it is ReadWrite?

Then my plans are to run the Database Engine Tuning Advisor on it, then copy it back to my primary computer.

Thanks again for your help.
Start Free Trial
[+][-]05.20.2008 at 07:43AM PDT, ID: 21606588

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 07:45AM PDT, ID: 21606607

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, Microsoft Visual Basic.Net, Microsoft Visual C#.Net
Tags: SQL Server 2005, N/A, N/A
Sign Up Now!
Solution Provided By: AshleyBryant
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.20.2008 at 07:45AM PDT, ID: 21606608

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.20.2008 at 07:45AM PDT, ID: 21606613

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628