Checking Consistency of the Database 
Use
A database consistency check performs a thorough check of the entire database. It examines all tables in the database to find out whether index and data pages are correctly linked and indexes are in proper sorted order. It also checks that all pointers are consistent and that the data information on each page, and page offsets are reasonable. It enables the early recognition of problems and thus prevents problem escalation and possible loss of data.
Schedule the consistency checks with the R/3 Planning Calendar. Checks should run at the weekend when you have time. When the check runs, no other task should be scheduled.

At the SQL Server level, the R/3 database consistency check executes the DBCC CHECKDB command. This typically locks user tables, indexes and system tables when running. In addition, it is very I/O intensive and should therefore not be run during normal operation, but a times when the system load is low.
For more information, see R/3 Note 142731 DBCC Checks for SQL Server 7.0
Procedure
Alternatively enter the transaction code DB13.
If actions have already been scheduled on the chosen day, these are displayed.
If not, a list of the actions you can schedule is displayed.
The database consistency check is now scheduled. It is entered in the calendar and visible on the days when it will be executed.
The SQL DB Administration in the SAP Environment window opens. It displays information about the task and gives a short overview of the task history. The task log is displayed.

Error messages for the DBCC check are also written to the file
\MSSQL7\ CCMS_CHECKDB_HIST.TXT. If errors occurred, always look at this file because it contains all messages generated and is easier to read than the list of errors in the Planning Calendar.
To find out how to change scheduled actions see: