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

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/joe/wp-config.php:93) in /var/www/html/blogs/joe/wp-includes/feed-rss2-comments.php on line 8
Comments on: Capturing Transient Query Plan Changes https://www.sqlskills.com/blogs/joe/capturing-transient-query-plan-changes/ SQL Server Performance Tuning, High Availability and Disaster Recovery Blog Thu, 03 Jan 2013 04:31:49 +0000 hourly 1 https://wordpress.org/?v=6.9.4 By: Thomas LaRock https://www.sqlskills.com/blogs/joe/capturing-transient-query-plan-changes/#comment-587 Wed, 15 Aug 2012 00:00:11 +0000 /blogs/joe/post/Capturing-Transient-Query-Plan-Changes.aspx#comment-587 Thanks guys, much appreciated.

]]>
By: jonathan https://www.sqlskills.com/blogs/joe/capturing-transient-query-plan-changes/#comment-586 Tue, 14 Aug 2012 16:11:25 +0000 /blogs/joe/post/Capturing-Transient-Query-Plan-Changes.aspx#comment-586 The connect item that Joe provides above pretty much sums up the usefulness of Extended Events in capturing the execution plan for query execution. While there are three events that can do this type of operation, sadly they were essentially direct ports from SQL Trace, and simply adding one of them, even with a predicate that prevents the event from ever actually firing, has a 20%+ impact to server performance. I wouldn’t recommend turning these events on to my worst enemy at this point in SQL Server 2012, the level of impact is simply to high to make it worth while. This is incredibly sad because there are some really interesting use cases with some of the complex predicates that are possible in Extended Events, but I’d steer clear for now.

]]>
By: joe https://www.sqlskills.com/blogs/joe/capturing-transient-query-plan-changes/#comment-585 Tue, 14 Aug 2012 12:11:15 +0000 /blogs/joe/post/Capturing-Transient-Query-Plan-Changes.aspx#comment-585 Hi Tom,

For SQL Server 2012 there are options. I’m hoping Jon will pop the cork on this (especially being careful of the natural overhead \ danger of capturing the plans – for example – http://connect.microsoft.com/SQLServer/feedback/details/732870/sqlserver-query-post-execution-showplan-performance-impact).

I’ll ping him and get his thoughts on a lightweight approach.

Cheers,

Joe

]]>
By: Thomas LaRock https://www.sqlskills.com/blogs/joe/capturing-transient-query-plan-changes/#comment-584 Tue, 14 Aug 2012 11:06:56 +0000 /blogs/joe/post/Capturing-Transient-Query-Plan-Changes.aspx#comment-584 Joe,

Can you use XE to capture the query plan directly, rather than going to the DMV?

Thanks,

Tom

]]>