| Author |
Topic  |
|
|
sreehari
Starting Member
India
37 Posts |
Posted - 09/04/2006 : 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
United Kingdom
12543 Posts |
Posted - 09/04/2006 : 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. |
 |
|
|
paulrandal
Yak with Vast SQL Skills
USA
899 Posts |
Posted - 09/05/2006 : 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.) |
 |
|
| |
Topic  |
|