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 December 2019
https://www.sqlskills.com/blogs/glenn/sql-server-diagnostic-information-queries-for-december-2019/
Semi-random musings about SQL Server performanceSun, 03 May 2020 23:56:03 +0000
hourly
1 https://wordpress.org/?v=6.9.4
By: Alexey Ivanitskiy
https://www.sqlskills.com/blogs/glenn/sql-server-diagnostic-information-queries-for-december-2019/#comment-271730
Tue, 10 Dec 2019 14:42:38 +0000http://3.209.169.194/blogs/glenn/?p=1766#comment-271730Hi Glenn,
There is a section IOWarningResults in diagnostics scripts that reads data from ERRORLOG (I/O requests taking longer than 15 seconds).
If the actual number of ERRORLOG files is less than 5 then query execution fails.
I think It’s worth to enumerate the list of errorlog files and use cursor instead of explicit commands like “EXEC xp_readerrorlog X”.
But it requires to temporarily enable xp_cmdshell.
Or at least add RAISERROR to skip this section in case if error and continue with the following checks.
]]>