After much thought, and some procrastination, I have decided to implement a fairly significant reorganization of my SQL Server Diagnostic Information Queries, starting with the SQL Server 2016 version for January 2016. I use these queries on a daily basis during my consulting work at SQLskills.com, and I have been planning on making some changes to make them easier for me to use and analyze.
The main thrust of this reorganization effort to to change the order of the queries so that they are grouped more logically, making the results easier to comprehend and analyze. The general ordering is shown below:
- Instance-level information
- SQL Server configuration details
- OS configuration information
- Hardware details
- Storage details and performance information
- Database properties for all databases
- Instance-level performance information
- Specific database information
- File information and usage
- Query information
- Stored procedure information
- Index information
- Other performance information
In addition to this, I have revised and improved several of the queries so that they retrieve even more relevant information than before. I am continuing to add additional comments on how to interpret the results, along with additional links to useful sources of additional information about specific queries.
Finally, I have removed a number of queries that I have found to be less useful, taking the overall query count from 76 down to 69 for the SQL Server 2016 version. This will reduce the time required to run the queries and analyze the results.
Here are links to the current version of these queries for SQL Server 2016:
I am also planning on making some formatting changes in some of the queries, so that they work better with Excel.
I am going to make a similar reorganization effort for the SQL Server 2014 and SQL Server 2012 versions of these queries over the next couple of days. I will also make some minor updates to the SQL Server 2008 R2, SQL Server 2008, and SQL Server 2005 versions of the queries for the January release.
Please let me know what you think of these reorganized queries, and whether you have any suggestions for improvements. Thanks!