Solved

sql database suspect

Posted on 2007-11-16
9
1,189 Views
Last Modified: 2012-05-05
hi,
Our DB admin jst quit - evrything was workin fine so far up until this morning. The main database has a suspect next to it and i have no clue as to wut should be done and how can it be recovered. any help will be appreciated.
0
Comment
Question by:johny911
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 20300097
First step is start reading up on your disaster recovery plan, which should include location of all recent backups.
0
 
LVL 42

Accepted Solution

by:
EugeneZ earned 250 total points
ID: 20300116
what is your sql server version\edition?

if it is 2000:
solution from:
http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_21439242.html?sfQueryTermInfo=1+eugenez+suspect

if sql server 2005:

--thanks to Bob Ward from Microsoft
-- Note that SSMS shows suspect_db SUSPECT
-- and this command will fail
--
use suspect_db
go
--
-- Let's go see what the ERRORLOG says before
-- we decide to just repair it
--
use master
go
alter database suspect_db set emergency
go
use suspect_db
go
--
-- CHECKDB is clean. Why suspect?
--
dbcc checkdb(suspect_db)
go
--
-- I've got a row in this table. Is that ok?
--
select * from mytab
go
--
-- Go ahead and repair it
--
use master
go
alter database suspect_db set single_user
go
dbcc checkdb(suspect_db, repair_allow_data_loss)
go
alter database suspect_db set multi_user
go

alter database suspect_db set online
go

0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 20300193
Second step you need to do and BEFORE you attempt to remedy anything is to determine the reason it became Suspect.  That includes looking at the SQL Server Error Logs and Windows Events.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 31

Expert Comment

by:James Murrell
ID: 20300197
0
 

Author Comment

by:johny911
ID: 20300297
is there a step by step procedure that i can follow? i do know that the system was backed up last night -there is no disaster recovery program other than the backup.
0
 

Author Comment

by:johny911
ID: 20300321
in the most recent SQL server logs it states 'by passin the recovery of the database cuz its marked suspect'
0
 

Author Comment

by:johny911
ID: 20300367
"The LSN (261:507:1) passed to log scan in database 'database' is invalid.." - that is another error i found
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 20300869
0
 
LVL 3

Expert Comment

by:abhijit_k
ID: 20334188
Use DBCC REBUILDLOG COMMAND
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how the fundamental information of how to create a table.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question