DBCC - Undocumented commands

These commands may affect system performance and/or force table-level locks.There is no guarantee these commands will remain available in any future release of SQL server.

DBCC activecursors [(spid)]

DBCC addextendedproc (function_name, dll_name)

DBCC addinstance (objectname, instancename)

DBCC adduserobject (name)

DBCC auditevent (eventclass, eventsubclass, success, loginname, rolename, dbusername, loginid)

DBCC autopilot (typeid, dbid, tabid, indid, pages [,flag])

DBCC balancefactor (variance_percent)

DBCC bufcount [(number_of_buffers)]

DBCC buffer ( {‘dbname‘ | dbid} [, objid [, number [, printopt={0|1|2} ] [, dirty | io | kept | rlock | ioerr | hashed ]]])

DBCC bytes ( startaddress, length )

DBCC cachestats

DBCC callfulltext

DBCC checkdbts (dbid, newTimestamp)]

DBCC checkprimaryfile ( {‘FileName‘} [, opt={0|1|2|3} ])

DBCC cacheprofile [( {actionid} [, bucketid])

DBCC clearspacecaches (‘database_name‘|database_id, ‘table_name‘|table_id, ‘index_name‘|index_id)

DBCC collectstats (on | off)

DBCC config

DBCC cursorstats ([spid [,‘clear‘]])

DBCC dbinfo [(‘dbname‘)]

DBCC dbrecover (dbname [, IgnoreErrors])

DBCC dbreindexall (db_name/db_id, type_bitmap)

DBCC dbrepair (‘dbname‘, DROPDB [, NOINIT])

DBCC dbtable [({‘dbname‘ | dbid})]

DBCC debugbreak

DBCC deleteinstance (objectname, instancename)

DBCC des [( {‘dbname‘ | dbid} [, {‘objname‘ | objid} ])]

DBCC detachdb [( ‘dbname‘ )]

DBCC dropextendedproc (function_name)

DBCC dropuserobject (‘object_name‘)

DBCC dumptrigger ({‘BREAK‘, {0 | 1}} | ‘DISPLAY‘ | {‘SET‘, exception_number} | {‘CLEAR‘, exception_number})

DBCC errorlog

DBCC extentinfo [({‘database_name‘| dbid | 0} [,{‘table_name‘ | table_id} [, {‘index_name‘ | index_id | -1}]])]

DBCC fileheader [( {‘dbname‘ | dbid} [, fileid])

DBCC fixallocation [({‘ADD‘ | ‘REMOVE‘}, {‘PAGE‘ | ‘SINGLEPAGE‘ | ‘EXTENT‘ | ‘MIXEDEXTENT‘} , filenum, pagenum [, objectid, indid])

DBCC flush (‘data‘ | ‘log‘, dbid)

DBCC flushprocindb (database)

DBCC freeze_io (db)

DBCC getvalue (name)

DBCC icecapquery (‘dbname‘, stored_proc_name [, #_times_to_icecap (-1 infinite, 0 turns off)])
Use ‘dbcc icecapquery (printlist)‘ to see list of SP‘s to profile.
Use ‘dbcc icecapquery (icecapall)‘ to profile all SP‘s.

DBCC incrementinstance (objectname, countername, instancename, value)

DBCC ind ( { ‘dbname‘ | dbid }, { ‘objname‘ | objid }, { indid | 0 | -1 | -2 } )

DBCC invalidate_textptr (textptr)

DBCC invalidate_textptr_objid (objid)

DBCC iotrace ( { ‘dbname‘ | dbid | 0 | -1 } , { fileid | 0 }, bufsize, [ { numIOs | -1 } [, { timeout (sec) | -1 } [, printopt={ 0 | 1 }]]] )

DBCC latch ( address [, ‘owners‘] [, ‘stackdumps‘])

DBCC lock ([{‘DUMPTABLE‘ | ‘DUMPSTATS‘ | ‘RESETSTATS‘ | ‘HASH‘}] | [{‘STALLREPORTTHESHOLD‘, stallthreshold}])

DBCC lockobjectschema (‘object_name‘)

DBCC log ([dbid[,{0|1|2|3|4}[,[‘lsn‘,‘[0x]x:y:z‘]|[‘numrecs‘,num]|[‘xdesid‘,‘x:y‘] | [‘extent‘,‘x:y‘]|[‘pageid‘,‘x:y‘]|[‘objid‘,{x,‘y‘}]|[‘logrecs‘, {‘lop‘|op}...]|[‘output‘,x,[‘filename‘,‘x‘]]...]]])

DBCC loginfo [({‘database_name‘ | dbid})]

DBCC matview ({‘PERSIST‘ | ‘ENDPERSIST‘ | ‘FREE‘ | ‘USE‘ | ‘ENDUSE‘})

DBCC memobjlist [(memory object)]

DBCC memorymap

DBCC memorystatus

DBCC memospy

DBCC memusage ([IDS | NAMES], [Number of rows to output])

DBCC monitorevents (‘sink‘ [, ‘filter-expression‘])

DBCC newalloc - please use checkalloc instead

DBCC no_textptr (table_id , max_inline)

DBCC page ( {‘dbname‘ | dbid}, filenum, pagenum [, printopt={0|1|2|3} ][, cache={0|1} ])

DBCC perflog

DBCC perfmon

DBCC pglinkage (dbid, startfile, startpg, number, printopt={0|1|2} , targetfile, targetpg, order={1|0})

DBCC procbuf [({‘dbname‘ | dbid}[, {‘objname‘ | objid} [, nbufs[, printopt = { 0 | 1 } ]]] )]

DBCC prtipage (dbid, objid, indexid [, [{{level, 0} | {filenum, pagenum}}] [,printopt]])

DBCC pss [(uid[, spid[, printopt = { 1 | 0 }]] )]

DBCC readpage ({ dbid, ‘dbname‘ }, fileid, pageid , formatstr [, printopt = { 0 | 1} ])

DBCC rebuild_log (dbname [, filename])

DBCC renamecolumn (object_name, old_name, new_name)

DBCC resource

DBCC row_lock (dbid, tableid, set) - Not Needed

DBCC ruleoff ({ rulenum | rulestring } [, { rulenum | rulestring } ]+)

DBCC ruleon ( rulenum | rulestring } [, { rulenum | rulestring } ]+)

DBCC setcpuweight (weight)

DBCC setinstance (objectname, countername, instancename, value)

DBCC setioweight (weight)

DBCC showdbaffinity

DBCC showfilestats [(file_num)]

DBCC showoffrules

DBCC showonrules

DBCC showtableaffinity (table)

DBCC showtext (‘dbname‘, {textpointer | {fileid, pageid, slotid[,option]}})

DBCC showweights

DBCC sqlmgrstats

DBCC stackdump [( {uid[, spid[, ecid]} | {threadId, ‘THREADID‘}] )]

DBCC tab ( dbid, objid )

DBCC tape_control {‘query‘ | ‘release‘}[,(‘\\.\tape‘)]

DBCC tec [( uid[, spid[, ecid]] )]

DBCC textall [({‘database_name‘|database_id}[, ‘FULL‘ | FAST] )]

DBCC textalloc ({‘table_name‘|table_id}[, ‘FULL‘ | FAST])

DBCC thaw_io (db)

DBCC upgradedb (db)

DBCC usagegovernor (command, value)

DBCC useplan [(number_of_plan)]

DBCC wakeup (spid)

DBCC writepage ({ dbid, ‘dbname‘ }, fileid, pageid, offset, length, data)

In early versions of SQL Server - DBCC stood for "Database Consistency Checker", now renamed as Database Console Command.

Related (current) commands:

DBCC CHECK... 
DBCC CLEANTABLE 
DBCC dllname 
DBCC DROPCLEANBUFFERS 
DBCC FREE... CACHE 
DBCC HELP 
DBCC INPUTBUFFER 
DBCC OPENTRAN 
DBCC OUTPUTBUFFER 
DBCC PROCCACHE 
DBCC SHOW_STATISTICS 
DBCC SHRINKDATABASE 
DBCC SHRINKFILE 
DBCC SQLPERF 
DBCC TRACE... 
DBCC UPDATEUSAGE 
DBCC USEROPTIONS

原文地址:https://www.cnblogs.com/lhdz_bj/p/9454888.html

时间: 2024-11-05 20:40:56

DBCC - Undocumented commands的相关文章

Openvswitch原理与代码分析(7): 添加一条流表flow

添加一个flow,调用的命令为 ovs-ofctl add-flow hello "hard_timeout=0 idle_timeout=0 priority=1 table=21 pkt_mark=0x55 tun_id=0x55 actions=mod_nw_dst:192.168.56.101,output:2" 这里调用的是调用ovs/utilities/ovs-ofctl.c的命令行工具 这个命令行工具支持的所有的命令及处理函数定义如下: static const stru

Python 中的 pdb 模块

PYTHON 代码,尤其是别人写的代码看不懂.怎么办? 其实PYTHON中也提供了类似于C语言中用于debug 的 gdb.它叫做pdb.结合本人自己的学习,进行简单的举例,以做备忘和补偿学习. 首先参考资料: 1.http://web.stanford.edu/class/physics91si/2013/handouts/Pdb_Commands.pdf 2.https://docs.python.org/2/library/pdb.html 以 shadowsocks 的 local.py

Impala笔记之通用命令

help help命令用于查询其它命令的用法 [quickstart.cloudera:21000] > help select; Executes a SELECT... query, fetching all rows 直接输入help不带其它命令会列出目前可用的命令: [quickstart.cloudera:21000] > help; Documented commands (type help <topic>): ============================

转:Python标准库(非常经典的各种模块介绍)

Python Standard Library 翻译: Python 江湖群 10/06/07 20:10:08 编译 0.1. 关于本书 0.2. 代码约定 0.3. 关于例子 0.4. 如何联系我们 核心模块 1.1. 介绍 1.2. _ _builtin_ _ 模块 1.3. exceptions 模块 1.4. os 模块 1.5. os.path 模块 1.6. stat 模块 1.7. string 模块 1.8. re 模块 1.9. math 模块 1.10. cmath 模块

python之cmd库学习

一:cmd介绍 引用python的官方文档 The cmd class provides a simple framework for writing line-oriented command interpreters.  These are often useful for test harnesses, administrative tools, and prototypes that will later be wrapped in a more sophisticated interf

《可爱的Python》读书笔记(五)

不论战术上如何变化,千万不要忘记战略. 在前些时候小白已经使用getopt获得命令行工具. 但是,要完成一个个看似简单,实际有 N 多情况的逻辑判定就有点烦人了. 热心的行者,又出声了:"使用 cmd 吧!" cmd模块,是一个专门支持命令行界面的模块.让我们来重构一下它: # -*- coding: utf-8 -*- import sys import cmd class PyCDC(cmd.Cmd):          def __init__(self):         # 

pdb 调试

以前写python一直用pycharm,调试啥的比较方便,最近要在远程服务器上调试一些程序,只有一个控制台就可以用pdb进行调试了.常用的只有几个命令. break 或 b 设置断点 continue 或 c 继续执行程序 list 或 l 查看当前行的代码段 step 或 s 进入函数 return 或 r 执行代码直到从当前函数返回 exit 或 q 中止并退出 next 或 n 执行下一行 pp 打印变量的值 help 帮助 pdb 是 python 自带的一个包,为 python 程序提

List Available DBCC Commands

DBCC Commands or Database Consistency Checker commands have been with SQL Server from its early ages itself. In this article we would list the available DBCC commands listed using the DBCC Help command. Many in this list are undocumented and  are rar

几个未公开的 DBCC 命令

http://blog.csdn.net/CathySun118/article/category/538610 https://ask.hellobi.com/blog/lyhabc/1612 1. DBCC BUFFER This command can be used to display buffer headers and pages from the buffer cache.Syntax: dbcc buffer ([dbid|dbname] [,objid|objname] [,