The Transact-SQL programming language provides DBCC statements that act as the “database consistency checker” for Microsoft® SQL Server™. These statements check the physical and logical consistency of a database. Many DBCC statements can fix detected problems. These database consistency-checking statements are grouped into these categories.
Maintenance Statements:
Maintenance tasks on a database, index, or filegroup.
Miscellaneous tasks such as enabling row-level locking or removing a dynamic-link library (DLL) from memory
Status Checks
Validation operations on a database, table, index, catalog, filegroup, system tables, or allocation of database pages.
Maintenance Statements:
Maintenance tasks on a database, index, or filegroup.
- DBCC DBREPAIR
- DBCC SHRINKFILE
- DBCC DBREINDEX
- DBCC UPDATEUSAGE
- DBCC SHRINKDATABASE
Miscellaneous tasks such as enabling row-level locking or removing a dynamic-link library (DLL) from memory
- DBCC dllname (FREE)
- DBCC TRACEOFF
- DBCC HELP
- DBCC TRACEON
- DBCC PINTABLE
- DBCC UNPINTABLE
- DBCC ROWLOCK
Status Checks
- DBCC INPUTBUFFER
- DBCC SHOW_STATISTICS
- DBCC OPENTRAN
- DBCC SQLPERF
- DBCC OUTPUTBUFFER
- DBCC TRACESTATUS
- DBCC PROCCACHE
- DBCC USEROPTIONS
- DBCC SHOWCONTIG
Validation operations on a database, table, index, catalog, filegroup, system tables, or allocation of database pages.
- DBCC CHECKALLOC
- DBCC CHECKTABLE
- DBCC CHECKCATALOG
- DBCC NEWALLOC
- DBCC CHECKDB
- DBCC TEXTALL
- DBCC CHECKFILEGROUP
- DBCC TEXTALLOC
- DBCC CHECKIDENT
0 comments:
Post a Comment