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 Detailed, Day 15 https://www.sqlskills.com/blogs/glenn/sql-server-diagnostic-information-queries-detailed-day-15/ Semi-random musings about SQL Server performance Mon, 11 Nov 2019 00:27:15 +0000 hourly 1 https://wordpress.org/?v=6.9.4 By: Glenn Berry https://www.sqlskills.com/blogs/glenn/sql-server-diagnostic-information-queries-detailed-day-15/#comment-271169 Mon, 11 Nov 2019 00:27:15 +0000 http://3.209.169.194/blogs/glenn/?p=1038#comment-271169 In reply to Brian Fountain.

Hi Brian, There are two queries in this blog post, but you don’t say which one you are having a problem with. You also don’t say what version of SQL Server you are trying to run them on. Both of these queries will work on any recent version of SQL Server. They are both part of my Diagnostic Information Queries, which are used by thousands of people around the world.

If you can be more specific, I might be able to help you.

]]>
By: Brian Fountain https://www.sqlskills.com/blogs/glenn/sql-server-diagnostic-information-queries-detailed-day-15/#comment-271087 Fri, 08 Nov 2019 17:54:50 +0000 http://3.209.169.194/blogs/glenn/?p=1038#comment-271087 After removing the line # and: and running…

Msg 102, Level 15, State 1, Line 7
Incorrect syntax near ‘/text’.
Msg 319, Level 15, State 1, Line 11
Incorrect syntax near the keyword ‘with’. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
Msg 156, Level 15, State 1, Line 17
Incorrect syntax near the keyword ‘AS’.
Msg 319, Level 15, State 1, Line 18
Incorrect syntax near the keyword ‘with’. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
Msg 319, Level 15, State 1, Line 19
Incorrect syntax near the keyword ‘with’. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.

]]>
By: Glenn Berry https://www.sqlskills.com/blogs/glenn/sql-server-diagnostic-information-queries-detailed-day-15/#comment-270921 Wed, 30 Oct 2019 15:20:00 +0000 http://3.209.169.194/blogs/glenn/?p=1038#comment-270921 In reply to Matus Knut.

Hi Matus, I’m not sure what you actually mean. That query absolutely works. If there is no blocking, it won’t return any results, but it does not error out.

]]>
By: Matus Knut https://www.sqlskills.com/blogs/glenn/sql-server-diagnostic-information-queries-detailed-day-15/#comment-270920 Wed, 30 Oct 2019 14:11:48 +0000 http://3.209.169.194/blogs/glenn/?p=1038#comment-270920 Dear Glenn,

thank you very much for this blog.

Could you please verify Query #36 – Detect Blocking?

I tried to run this T-SQL code in various of MS SQL server’s versions but still failed.

I tried to “fix” it but without success.

Thanks.

Regards,
matus knut

]]>