DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE
SITE SEARCH SQLUSA.com HEADLINES NEWS
SQL E/BOOKS   SQL 2014 PROGRAMMING   DOWNLOADS
SCRIPTS SQL 2005 SQL 2008 ARTICLES
SQL JOBS TWITTER FORMAT VIDEOS
How to check the integrity of a database?

In Microsoft SQL Server Management Studio Query Editor execute the following command:

USE AdventureWorks2008;

GO

DBCC CHECKDB WITH NO_INFOMSGS;

GO

Execution time may span from minutes to hours. It is dependent on the size of the database and the configuration of the server.

The partial output looks like below on OK execution if NO_INFOMSGS option is not used:

DBCC results for 'titles'.
There are 18 rows in 1 pages for object 'titles'.
CHECKDB found 0 allocation errors and 0 consistency errors in database 'pubs'.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.

Exam Prep 70-461
Exam 70-461
DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE