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 (http://blog.SQLAuthority.com)

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s