SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Data Corruption Issues
 database is in bypass recovery mode
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sreehari
Starting Member

India
37 Posts

Posted - 09/04/2006 :  10:55:54  Show Profile  Send sreehari a Yahoo! Message  Reply with Quote
Hi all

My database 'a2rd' was marked as suspect
and i did the following steps to make it available

USE MASTER
select name, dbid, mode, status from sysdatabases where dbid =
db_id('a2rd')
UPDATE SYSDATABASES SET STATUS=-32768 WHERE NAME='a2rd'
EXEC sp_configure 'show advanced option', '1'
EXEC sp_configure 'allow updates', '1'
RECONFIGURE WITH OVERRIDE
DBCC NEWALLOC(a2rd)
DBCC TEXTALL (a2rd)
DBCC CHECKDB (A2RD



now how can i take the backup of the database that was in emergency mode..

Thanks in advance..


nr
SQLTeam MVY

United Kingdom
12543 Posts

Posted - 09/04/2006 :  18:46:25  Show Profile  Visit nr's Homepage  Reply with Quote
You can't backup the database without recvering it.
You can bcp out all the data though.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

paulrandal
Yak with Vast SQL Skills

USA
899 Posts

Posted - 09/05/2006 :  17:33:02  Show Profile  Visit paulrandal's Homepage  Reply with Quote
Firstly, what caused the database to go suspect?

Secondly, which version are you on? On SQL Server 2000, DBCC CHECKDB incorporates everything done by NEWALLOC and TEXTALL. What were the results of the CHECKDB?

Thirdly, do you have a backup to restore from?


Paul Randal
Lead Program Manager, Microsoft SQL Server Core Storage Engine (Legalese: This posting is provided "AS IS" with no warranties, and confers no rights.)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000