Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 25th, 2006, 09:43 AM
Registered User
Join Date: Feb 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to attach database left in Standby mode

Hi all,

I have the .mdf & .ldf files for an old SQL 2000 database which I wish to re-attach to a different SQL 2000 server.

Using Enterprise Manager, I am able to attach the database in read-only mode. When I try to uncheck read-only access option, I get an error dialog with "Microsoft SQL-DMO (ODBC SQLState:42000)" as the dialog title.

The body of the dialog has 2 lots of "Error 5105: Device activation error", each complaining about "the physical file name" corresponding to the .mdf & .ldf as "may be incorrect".

It further complains that it "Could not restart database. Reverting back to old status. ALTER DATABASE statement failed. ..... sp_dboption command failed."

I have absolutely no idea what these all mean but I am guessing that the problem may be due to the fact that the old database appears to be in Standby mode, as opposed to being "Offline", i.e. when the old database files were copied, it was not brought to offline.

I really need to bring it out of read-only mode. Please help!!
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
attach database in SQL server express manag studio bruhnf SQL Server 2005 0 March 14th, 2006 08:37 AM
Attach The database on oracle server Israr SQL Server 2000 0 September 8th, 2005 03:30 AM
Attach Database ! pamyral_279 VS.NET 2002/2003 2 May 17th, 2005 07:08 AM

All times are GMT -4. The time now is 03:23 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.