SQL Server 2008 Diagnostic Information Queries (Jan 2013)

Here is the January 2013 version of my SQL Server 2008 Diagnostic Information Queries, with some minor tweaks and improvements to several of the existing queries mainly focusing on collecting some information about whether Change Data Capture (CDC) is enabled. There is also one new query that breaks down overall I/O usage by database.

To go with it is an updated, blank 2008 results spreadsheet, where the tabs in the spreadsheet are labeled and in the same order as the queries. The idea is that you can run these queries one by one, click on the top left square of the results grid, and then right-click and select “Copy with Headers” to select and copy the results of the query and then paste them into the matching tab of the results spreadsheet.

These queries will work on both SQL Server 2008 and SQL Server 2008 R2 (although some of them will only work on SQL Server 2008 R2 SP1 or later). This is indicated in the instructions for each query.

You should be aware that both Query 46 and Query 49 could take some time to run, depending on the size of your database and the speed of your hardware and storage subsystem.

As always, I welcome any feedback you may have about these queries.

About these ads
This entry was posted in SQL Server 2008, SQL Server 2008 R2 and tagged , . Bookmark the permalink.

2 Responses to SQL Server 2008 Diagnostic Information Queries (Jan 2013)

  1. Pingback: SQL Server – Diagnostic Information Queries (2005/2008/2012) « Alex Souza

  2. Samuel HERVOUET says:

    In Query 22, in order to have pertinent results, you have to exclude REQUEST_FOR_DEADLOCK_SEARCH’ and ‘XE_TIMER_EVENT’
    like that : WHERE wait_type not in (‘REQUEST_FOR_DEADLOCK_SEARCH’, ‘XE_TIMER_EVENT’)

    Explaination :
    Both wait_type are basically system background processes (waiting for XEVENT processing and deadlock processing, respectively) and neither of which are therefore relevant to measuring the busyness of the server

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