Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 25th, 2006, 09:43 AM
Registered User
Join Date: Feb 2006
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!!

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

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.