Suspect Database DB SQL Server

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
Hello,

I have a DB (22 gigs big) that is suspect and not working anymore.

I found this repaircode on internet:

Code:
EXEC sp_resetstatus SOADB;
ALTER DATABASE SOADB SET EMERGENCY
DBCC checkdb(SOADB)
ALTER DATABASE SOADB SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB (SOADB, REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE SOADB SET MULTI_USER

The query is now allready running 1 hour and 30 minutes. Is this normal ? And will the DB be repaired in this way ?

Anyone with SQL experience can help me out ?

kind regards,

Gerry

repair.jpg
 
Code:
EXEC sp_resetstatus SOADB;
ALTER DATABASE SOADB SET EMERGENCY
DBCC checkdb(SOADB)
ALTER DATABASE SOADB SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB (SOADB, REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE SOADB SET MULTI_USER

In the following code, you did not set the database into Single user mode. The second thing is, here is the chance of data loss because you are using DBCC CHECKDB option with REPAIR_ALLOW_DATA_LOSS option.

I will suggest trying the free version of this SQL database repair software to fix Suspect mode issue.

Good Luck!
 
fix suspect database

It's quite common that the database is suspected, the best way is to always keep a backup. I have met such an issue, and I used the Bitwar to rescue my suspect database, you can also have a try.
 

Similar Topics

Hi All, I have been working on a home rig that has a 1756-L61S and the relevant safety partner. Have owned for a long time and never had any...
Replies
5
Views
2,182
Hi guys, I have a machine that has been acting up a few times lately. It looks like it "forgets" it's position. The position comes from a...
Replies
1
Views
1,440
I have a 1769-SDN DeviceNet scanner attached to a MicroLogix 1500, flashing 75 63. (No traffic, node 63). The highly suspect part is that the...
Replies
2
Views
2,395
I currently offshore on a platform doing a pre-start check of some equipment and I have a pressure xmitter that's causing the Underrange bit to...
Replies
9
Views
3,563
I’ve been tasked with extracting PLC (logix 5572) realtime data, storing it in a database (anything compatible with our data) and displaying it in...
Replies
0
Views
22
Back
Top Bottom