SQL SERVER – DBCC Commands Introduced in SQL Server 2005

SQL Server 2005 has introduced following two documented and five undocumented DBCC Commands. I was able to find documentation for only first one online. If you find any documentation of any other DBCC Commands please add comments. It will be helpful to all of us.

Documented:

  • freesessioncache () — no parameters
    Flushes the distributed query connection cache used by distributed queries against an instance of Microsoft SQL Server. View Details
  • requeststats ({clear} | {setfastdecayrate, rate} | {setslowdecayrate, rate})

UnDocumented:

  • mapallocunit (I8AllocUnitId | {I4part, I2part})
  • metadata ({‘print’ [, printopt = {0 |1}] | ‘drop’ | ‘clone’ [, ” | ….]}, {‘object’ [, ‘type’,…}, {Id | Name}, [{Ownerid | Ownername}], [{Dbid | Dbname}]])
  • optimizer_whatif property, value
  • persiststackhash (hashfile, BUFLATCH_TIMEOUT | ATTENTION | OUTOFLOCKS | LATCH_ATTN | OUTOFLOG | OUTOFMEM | SOS [, SKIPLAST | INCLUDELAST])
  • semetadata (object id | name, index id | name [, partition id])

Reference : Pinal Dave (https://blog.sqlauthority.com)

SQL Server DBCC
Previous Post
SQL SERVER – Fix: Server: Msg 7391, Level 16, State 1, Line 1
Next Post
SQL SERVER – Search Text Field – CHARINDEX vs PATINDEX

Related Posts

Leave a Reply