Solved

sql database suspect

Posted on 2007-11-16
9
1,188 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
 
LVL 31

Expert Comment

by:James Murrell
ID: 20300197
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now