MSSQLCity.Com - All about MS SQL
     
About Us  
SSWUG Articles  
Articles  
FAQ  
Administration  
Backup/Restore  
Connectivity  
Development  
General  
Installation  
OLAP  
Replication  
Transfer/move  
Trouble  
SQL 6.5  
Scripts  
Tips  
Test Exams  
Advertise  
Download  
History  
Search  
Traffic  
Related Links  
     
Your button logo
Add to Favorites
 
     
 


My database has been marked suspect. How can I fix this?

Answer:

A database can be marked suspect for one of the following reasons (this is from SQL Server Books Online):

If one or more database files are not available. 
If the entire database is not available. 
If one or more database files are corrupted. 
If a database resource is being held by the operating system. 
To resolve a suspect status, you can use the sp_resetstatus stored procedure. This is the example to turn off the suspect status on the pubs database:

sp_resetstatus pubs

Read about the sp_resetstatus stored procedure in SQL Server Books Online.


 

 
Visit The SQL Server Worldwide User's Group for all the latest news and information about SQL Server, Oracle, DB2 and XML for developers and administrators.

(c) 1997, 2005 Bits on the Wire, Inc