Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Data Corruption Issues
 database is in bypass recovery mode

Author  Topic 

sreehari
Starting Member

37 Posts

Posted - 2006-09-04 : 10:55:54
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

12543 Posts

Posted - 2006-09-04 : 18:46:25
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

899 Posts

Posted - 2006-09-05 : 17:33:02
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
   

- Advertisement -