Warning: Constant WP_TEMP_DIR already defined in /var/www/html/blogs/glenn/wp-config.php on line 94

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/glenn/wp-config.php:94) in /var/www/html/blogs/glenn/wp-includes/feed-rss2-comments.php on line 8
Comments on: SQL Server Diagnostic Information Queries for April 2015 https://www.sqlskills.com/blogs/glenn/sql-server-diagnostic-information-queries-for-april-2015/ Semi-random musings about SQL Server performance Tue, 09 Oct 2018 16:42:23 +0000 hourly 1 https://wordpress.org/?v=6.9.4 By: Stephen https://www.sqlskills.com/blogs/glenn/sql-server-diagnostic-information-queries-for-april-2015/#comment-178722 Sat, 16 May 2015 01:07:32 +0000 http://3.209.169.194/blogs/glenn/?p=950#comment-178722 Could I suggest that the first column in each resultset be the “Query Number”…?

E.g., — Get fragmentation info for all indexes above a certain size in the current database (Query 61) (Index Fragmentation)
— Note: This query could take some time on a very large database
SELECT ‘Q61’ AS Q61, DB_NAME(ps.database_id) AS [Database Name], OBJECT_NAME(ps.OBJECT_ID) AS [Object Name],
i.name AS [Index Name], ps.index_id, ps.index_type_desc, ps.avg_fragmentation_in_percent,
ps.fragment_count, ps.page_count, i.fill_factor, i.has_filter, i.filter_definition
FROM …

And perhaps you could label each spreadsheet tab with the query number in parentheses…? E.g., “Index Fragmentation (Q61)

My first time on a new-to-me server meant running everything and transposing results. That became a little confusing after the first 30 or so queries.

REALLY appreciate these queries, Glenn, they’ve shed more light on a poorly performing server than the “professionals” engaged a few weeks back.

]]>
By: Orson Weston https://www.sqlskills.com/blogs/glenn/sql-server-diagnostic-information-queries-for-april-2015/#comment-177333 Tue, 05 May 2015 23:27:07 +0000 http://3.209.169.194/blogs/glenn/?p=950#comment-177333 Thanks for continuing these great DMVs. These are great scripts to have in your bag of tricks.

]]>