Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Data Corruption Issues
 corrupt database

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-05-19 : 09:50:32
black_pearl writes "i want to know how to detect if a database in sql server 7 is corrupted. thanks."

robvolk
Most Valuable Yak

15732 Posts

Posted - 2006-05-19 : 09:51:02
First thing to do is run DBCC CHECKDB and see if it reports any errors. The syntax for the command is in Books Online.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-05-19 : 09:55:08
"The syntax for the command is in Books Online"

To preempt getting all the Info Message posted here!!! here's a suggested command:

DBCC CHECKDB ('MyDatabaseName') WITH ALL_ERRORMSGS, NO_INFOMSGS

Kristen
Go to Top of Page
   

- Advertisement -