The post SQL Server Diagnostic Information Queries for September 2014 appeared first on Glenn Berry.
]]>SQL Server 2014 72 Queries
SQL Server 2012 69 Queries
SQL Server 2008 R2 65 Queries
SQL Server 2008 59 Queries
SQL Server 2005 51 Queries
Rather than having a separate blog post for each version, I have just put the links for all five major versions in this single post. There are two separate links for each version. The first one on the top left is the actual query script, and the one below on the right is the matching blank results spreadsheet.
SQL Server 2005 Diagnostic Information Queries
SQL Server 2008 Diagnostic Information Queries
SQL Server 2008 Blank Results
SQL Server 2008 R2 Diagnostic Information Queries
SQL Server 2008 R2 Blank Results
SQL Server 2012 Diagnostic Information Queries
SQL Server 2012 Blank Results
SQL Server 2014 Diagnostic Information Queries
SQL Server 2014 Blank Results
The basic idea is that you should run each query in the set, one at a time (after reading the directions). It is not really a good idea to simply run the entire batch in one shot, especially the first time you run these queries on a particular server, since some of these queries can take some time to run, depending on your workload and hardware.
You need to click on the top left square of the results grid in SSMS to select all of the results, and then right-click and select “Copy with Headers” to copy all of the results, including the column headers to the Windows clipboard. Then you paste the results into the matching tab in the blank results spreadsheet. There are also some comments on how to interpret the results after each query.
About half of the queries are instance specific and about half are database specific, so you will want to make sure you are connected to a database that you are concerned about instead of the master system database. Running the database-specific queries while being connected to the master database is a very common mistake that I see people making.
Note: These queries are stored on Dropbox. I occasionally get reports that the links to the queries and blank results spreadsheets do not work, which is most likely because Dropbox is blocked wherever people are trying to connect.
I also occasionally get reports that some of the queries simply don’t work. This usually turns out to be an issue where people have some of their user databases in 80 compatibility mode, which breaks many DMV queries.
It is also very important that you are running the correct version of the script that matches the major version of SQL Server that you are running. There is an initial query in each script that tries to confirm that you are using the correct version of the script for your version of SQL Server.
If you want to understand how to better run and interpret these queries, you should consider listening to my latest Pluralsight course, which is SQL Server 2014 DMV Diagnostic Queries – Part 1. This course is short and to the point (only 67 minutes), and I think you will enjoy it!
Please let me know what you think of these queries, and whether you have any suggestions for improvements. Thanks!
The post SQL Server Diagnostic Information Queries for September 2014 appeared first on Glenn Berry.
]]>The post SQL Server Diagnostic Information Queries for June 2014 appeared first on Glenn Berry.
]]>Rather than having a separate blog post for each version, I have just put the links for all five major versions in this single post. There are two separate links for each version. The first one on the top left is the actual query script, and the one below on the right is the matching blank results spreadsheet.
SQL Server 2005 Diagnostic Information Queries
SQL Server 2005 Blank Results
SQL Server 2008 Diagnostic Information Queries
SQL Server 2008 Blank Results
SQL Server 2008 R2 Diagnostic Information Queries
SQL Server 2008 R2 Blank Results
SQL Server 2012 Diagnostic Information Queries
SQL Server 2012 Blank Results
SQL Server 2014 Diagnostic Information Queries
SQL Server 2014 Blank Results
The basic idea is that you should run each query in the set, one at a time (after reading the directions). You need to click on the top left square of the results grid in SSMS to select all of the results, and then right-click and select “Copy with Headers” to copy all of the results, including the column headers to the Windows clipboard. Then you paste the results into the matching tab in the blank results spreadsheet. There are also some comments on how to interpret the results after each query.
About half of the queries are instance specific and about half are database specific, so you will want to make sure you are connected to a database that you are concerned about instead of the master system database.
Note: These queries are stored on Dropbox. I occasionally get reports that the links to the queries and blank results spreadsheets do not work, which is most likely because Dropbox is blocked wherever people are trying to connect.
I also occasionally get reports that some of the queries simply don’t work. This usually turns out to be an issue where people have some of their user databases in 80 compatibility mode, which breaks many DMV queries.
It is also very important that you are running the correct version of the script that matches the major version of SQL Server that you are running. There is an initial query in each script that tries to confirm that you are using the correct version of the script for your version of SQL Server.
If you want to understand how to better run and interpret these queries, you should consider listening to my latest Pluralsight course, which is SQL Server 2014 DMV Diagnostic Queries – Part 1. This course is short and to the point (only 67 minutes), and I think you will enjoy it!
Please let me know what you think of these queries, and whether you have any suggestions for improvements. Thanks!
The post SQL Server Diagnostic Information Queries for June 2014 appeared first on Glenn Berry.
]]>The post SQL Server Diagnostic Information Queries for April 2014 appeared first on Glenn Berry.
]]>Rather than having a separate blog post for each version, I have just put the links for all five major versions in this single post. There are two separate links for each version. The first one on the top left is the actual query script, and the one below on the right is the matching blank results spreadsheet.
SQL Server 2005 Diagnostic Information Queries
SQL Server 2005 Blank Results
SQL Server 2008 Diagnostic Information Queries
SQL Server 2008 Blank Results
SQL Server 2008 R2 Diagnostic Information Queries
SQL Server 2008 R2 Blank Results
SQL Server 2012 Diagnostic Information Queries
SQL Server 2012 Blank Results
SQL Server 2014 Diagnostic Information Queries
SQL Server 2014 Blank Results
The basic idea is that you should run each query in the set, one at a time (after reading the directions). You need to click on the top left square of the results grid in SSMS to select all of the results, and then right-click and select “Copy with Headers” to copy all of the results, including the column headers to the Windows clipboard. Then you paste the results into the matching tab in the blank results spreadsheet. There are also some comments on how to interpret the results after each query.
About half of the queries are instance specific and about half are database specific, so you will want to make sure you are connected to a database that you are concerned about instead of the master system database.
Note: These queries are stored on Dropbox. I occasionally get reports that the links to the queries and blank results spreadsheets do not work, which is most likely because Dropbox is blocked wherever people are trying to connect.
I also occasionally get reports that some of the queries simply don’t work. This usually turns out to be an issue where people have some of their user databases in 80 compatibility mode, which breaks many DMV queries.
There is an initial query in each version that tries to confirm that you are using the correct version of the script for your version of SQL Server. Please let me know what you think of these queries, and whether you have any suggestions for improvements. Thanks!
The post SQL Server Diagnostic Information Queries for April 2014 appeared first on Glenn Berry.
]]>The post SQL Server Diagnostic Information Queries for March 2014 appeared first on Glenn Berry.
]]>SQL Server 2005 Diagnostic Information Queries
SQL Server 2005 Blank Results
SQL Server 2008 Diagnostic Information Queries
SQL Server 2008 Blank Results
SQL Server 2008 R2 Diagnostic Information Queries
SQL Server 2008 R2 Blank Results
SQL Server 2012 Diagnostic Information Queries
SQL Server 2012 Blank Results
SQL Server 2014 Diagnostic Information Queries
SQL Server 2014 Blank Results
The basic idea is that you should run each query in the set, one at a time (after reading the directions). You need to click on the top left square of the results grid in SSMS to select all of the results, and then right-click and select “Copy with Headers” to copy all of the results, including the column headers to the Windows clipboard. Then you paste the results into the matching tab in the blank results spreadsheet. There are also some comments on how to interpret the results after each query.
About half of the queries are instance specific and about half are database specific, so you will want to make sure you are connected to a database that you are concerned about instead of the master system database.
Note: These queries are stored on Dropbox. I occasionally get reports that the links to the queries and blank results spreadsheets do not work, which is most likely because Dropbox is blocked wherever people are trying to connect.
I also occasionally get reports that some of the queries simply don’t work. This usually turns out to be an issue where people have some of their user databases in 80 compatibility mode, which breaks many DMV queries.
There is an initial query in each version that tries to confirm that you are using the correct version of the script for your version of SQL Server. Please let me know what you think of these queries, and whether you have any suggestions for improvements. Thanks!
The post SQL Server Diagnostic Information Queries for March 2014 appeared first on Glenn Berry.
]]>The post SQL Server Diagnostic Information Queries for February 2014 appeared first on Glenn Berry.
]]>SQL Server 2005 Diagnostic Information Queries
SQL Server 2005 Blank Results
SQL Server 2008 Diagnostic Information Queries
SQL Server 2008 Blank Results
SQL Server 2008 R2 Diagnostic Information Queries
SQL Server 2008 R2 Blank Results
SQL Server 2012 Diagnostic Information Queries
SQL Server 2012 Blank Results
SQL Server 2014 Diagnostic Information Queries
SQL Server 2014 Blank Results
The basic idea is that you should run each query in the set, one at a time (after reading the directions). You need to click on the top left square of the results grid in SSMS to select all of the results, and then right-click and select “Copy with Headers” to copy all of the results, including the column headers to the Windows clipboard. Then you paste the results into the matching tab in the blank results spreadsheet. There are also some comments on how to interpret the results after each query.
About half of the queries are instance specific and about half are database specific, so you will want to make sure you are connected to a database that you are concerned about instead of the master system database.
Note: These queries are stored on Dropbox. I occasionally get reports that the links to the queries and blank results spreadsheets do not work, which is most likely because Dropbox is blocked wherever people are trying to connect.
I also occasionally get reports that some of the queries simply don’t work. This usually turns out to be an issue where people have some of their user databases in 80 compatibility mode, which breaks many DMV queries.
There is an initial query in each version that tries to confirm that you are using the correct version of the script for your version of SQL Server. Please let me know what you think of these queries, and whether you have any suggestions for improvements. Thanks!
If you want to see me demonstrate and explain how to interpret these queries, you should consider attending the SQLintersection Conference in April.

The post SQL Server Diagnostic Information Queries for February 2014 appeared first on Glenn Berry.
]]>The post SQL Server Diagnostic Information Queries for January 2014 appeared first on Glenn Berry.
]]>Rather than having a separate blog post for each version, I’ll just put the links for all five major versions here. There are two separate links for each version. The first one on the top left is the actual query script, and the one below on the right is the matching blank results spreadsheet.
SQL Server 2005 Diagnostic Information Queries
SQL Server 2005 Blank Results
SQL Server 2008 Diagnostic Information Queries
SQL Server 2008 Blank Results
SQL Server 2008 R2 Diagnostic Information Queries
SQL Server 2008 R2 Blank Results
SQL Server 2012 Diagnostic Information Queries
SQL Server 2012 Blank Results
SQL Server 2014 Diagnostic Information Queries
SQL Server 2014 Blank Results
About half of the queries are instance specific and about half are database specific, so you will want to make sure you are connected to a database that you are concerned about instead of the master system database.
The idea is that you would run each query in the set, one at a time (after reading the directions). You need to click on the top left square of the results grid to select all of the results, and then right-click and select “Copy with Headers” to copy all of the results, including the column headers to the Windows clipboard. Then you paste the results into the matching tab in the spreadsheet. There are also some comments on how to interpret the results after each query.
Note: These queries are stored on Dropbox. I occasionally get reports that the links to the queries and blank results spreadsheets do not work, which is most likely because Dropbox is blocked wherever people are trying to connect.
I also occasionally get reports that some of the queries simply don’t work. This usually turns out to be an issue where people have some of their user databases in 80 compatibility mode, which breaks many DMV queries.
There is an initial query in each version that tries to confirm that you are using the correct version of the script for your version of SQL Server.
Please let me know what you think of these queries, and whether you have any suggestions for improvements. Thanks!
The post SQL Server Diagnostic Information Queries for January 2014 appeared first on Glenn Berry.
]]>The post SQL Server 2012 Diagnostic Information Queries (December 2013) appeared first on Glenn Berry.
]]>The blank results spreadsheet has also been updated to match. You can download the queries and the results spreadsheet from the links below:
SQL Server 2012 Diagnostic Information Queries
SQL Server 2012 Blank Results
About half of these queries are instance specific and about half are database specific, so you will want to make sure you are connected to a user database that you are concerned about instead of the master system database.
The basic idea is that you would run each query in the set, one at a time (after reading the directions). You will need to click on the top left square of the results grid to select all of the results, and then right-click and select “Copy with Headers” to copy all of the results, including the column headers to the Windows clipboard. Then you paste the results into the matching tab in the results spreadsheet. There are also some comments on how to interpret the results after each query.
Note: These queries are stored on Dropbox. I occasionally get reports that the links to the queries and blank results spreadsheets do not work, which is most likely because Dropbox is blocked wherever people are trying to connect. I also occasionally get reports that some of the queries simply don’t work. This usually turns out to be an issue where people have some of their databases in 80 compatibility mode, which breaks many DMV queries.
There is an initial query in each version that tries to confirm that you are using the correct version of the script for your version of SQL Server. In this case, you need to have SQL Server 2012 RTM (or newer) to pass that check.
Please let me know what you think of these queries, and whether you have any suggestions for improvements. Thanks!
If you know someone who would benefit from our IE0: Immersion Event for Accidental/Junior DBA or IEHW: Immersion Event on SQL Server Hardware, refer them to us and when they register we’ll send you a $50 Amazon gift card. Either they or you just need to let us know you referred them, we’ll match it up to their registration and send you the gift card.
The post SQL Server 2012 Diagnostic Information Queries (December 2013) appeared first on Glenn Berry.
]]>The post SQL Server Diagnostic Information Queries for September 2013 appeared first on Glenn Berry.
]]>Rather than having a separate blog post for each version, I’ll just put the links for all five versions here.
SQL Server 2005 Diagnostic Information Queries SQL Server 2005 Blank Results
SQL Server 2008 Diagnostic Information Queries SQL Server 2008 Blank Results
SQL Server 2008 R2 Diagnostic Information Queries SQL Server 2008 R2 Blank Results
SQL Server 2012 Diagnostic Information Queries SQL Server 2012 Blank Results
SQL Server 2014 Diagnostic Information Queries SQL Server 2014 Blank Results
About half of the queries are instance specific and about half are database specific, so you will want to make sure you are connected to a database that you are concerned about instead of the master, system database.
The idea is that you would run each query in the set, one at a time (after reading the directions). You need to click on the top left square of the results grid to select all of the results, and then right-click and select “Copy with Headers” to copy all of the results, including the column headers to the Windows clipboard. Then you paste the results into the matching tab in the spreadsheet. There are also some comments on how to interpret the results after each query.
Note: These queries are stored on Dropbox. I occasionally get reports that the links to the queries and blank results spreadsheets do not work, which is most likely because Dropbox is blocked wherever people are trying to connect.
I also occasionally get reports that some of the queries simply don’t work. This usually turns out to be an issue where people have databases in 80 compatibility mode, which breaks many DMV queries.
Please let me know what you think of these queries. Thanks!
The post SQL Server Diagnostic Information Queries for September 2013 appeared first on Glenn Berry.
]]>