<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx</link><description>It's been several months since the last Who is Active fix, so I thought I'd call this one out specifically via a blog post. v11.11 contains a few minor fixes and enhancements, which you can read about on the download page . This will (I believe) be the</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#42456</link><pubDate>Thu, 22 Mar 2012 22:00:24 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42456</guid><dc:creator>Tony</dc:creator><description>&lt;p&gt;Hi Adam,&lt;/p&gt;
&lt;p&gt;might it be worth adding SET ANSI_NULLS, QUOTED_IDENTIFIER ON to the top of your sp_whoisactive script (given that these settings are saved with the object definition at creation time)? If the proc is created with them off, it errors when it uses the xml datatype methods (e.g. the @get_transaction_info option).&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#42458</link><pubDate>Fri, 23 Mar 2012 01:18:37 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42458</guid><dc:creator>Don Halloran</dc:creator><description>&lt;p&gt;Hi Adam, great query, this answers at least half of my day to day questions on perfomrance, blocking etc all by itself.&lt;/p&gt;
&lt;p&gt;One question: What are the units on the various columns? For instance, used memory, reads, writes: pages, kb ...?&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#42459</link><pubDate>Fri, 23 Mar 2012 01:35:54 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42459</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Tony: Maybe in the next version :-)&lt;/p&gt;
&lt;p&gt;Don: Units are 8KB data pages unless otherwise specified.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#42460</link><pubDate>Fri, 23 Mar 2012 08:00:47 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42460</guid><dc:creator>John Sansom</dc:creator><description>&lt;p&gt;Brilliant! I cannot thank you enough. This utility procedure has proved incredibly valuable to myself and the many others I have introduced it to. It's become a vital tool for triaging sql servers. Thanks for all your efforts and sharing it with us.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#42461</link><pubDate>Fri, 23 Mar 2012 08:40:04 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42461</guid><dc:creator>spe109</dc:creator><description>&lt;p&gt;Thanks for your hard work Adam. Great utility that is so very useful. &lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#42471</link><pubDate>Sat, 24 Mar 2012 14:03:45 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42471</guid><dc:creator>Craig M.</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;I will update my machines with v11.11.&lt;/p&gt;
&lt;p&gt;&amp;gt; I appreciate any comments or feedback.&lt;/p&gt;
&lt;p&gt;&amp;quot;After April [2011] all of these posts will be edited and combined into a single document to become the basis of the Who is Active documentation.&amp;quot;&lt;/p&gt;
&lt;p&gt;I periodically check back for this document, but it does not seem to be available yet.&lt;/p&gt;
&lt;p&gt;Could you please comment on the availability?&lt;/p&gt;
&lt;p&gt;Can I expect this document sometime this year?&lt;/p&gt;
&lt;p&gt;If not, could you indicate the target year?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#42568</link><pubDate>Fri, 30 Mar 2012 13:29:19 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42568</guid><dc:creator>dmmaxwell</dc:creator><description>&lt;p&gt;This proc is part of my default administrative install for every sql server in the environment, along with a job that uses it to keep a log of activity on the server. Thanks again for your work.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#42886</link><pubDate>Wed, 18 Apr 2012 20:30:05 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42886</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;Hi Adam,&lt;/p&gt;
&lt;p&gt;WOW what a great tool. &amp;nbsp;I have no words to describe how awesome this dose the job. &amp;nbsp;I have helped some developer pin point what is going with your tool(but only in test environment). &amp;nbsp;But got few comments...&lt;/p&gt;
&lt;p&gt;I am a professional oracle DBA and a seasonal SQL Server DBA. &amp;nbsp;Our company has most of there apps running on oracle and very few apps running SQL SERVER (2005 and 2008). &amp;nbsp;Due to that i only get call about sql server issue one in a blue moon....our SQL Server apps are pretty stable but they do mis-behave every once in a while... now to the actual comment part..&lt;/p&gt;
&lt;p&gt;I do see that we have to create a SP in the master db, but is there a way to run this without creating a SP. &amp;nbsp;The reason is due to CHANGE MANAGEMENT POLICY..we have a very strict policy about creating new stuff in production and it will not be approved....There is a great tool just like yours called SNAPPER in oracle world written by Tanel Poder ( &lt;a rel="nofollow" target="_new" href="http://tech.e2sn.com/oracle-scripts-and-tools/session-snapper"&gt;http://tech.e2sn.com/oracle-scripts-and-tools/session-snapper&lt;/a&gt; )...dose the same thing in oracle but without creating any SP in the DB. Its a anonymous block. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;If your tool could do something similar, that would be awesome for people who have a strict change management policy. &amp;nbsp;As its hard to explain why i want to create this(besides performance reason) to change management. &amp;nbsp;Is this actually even doable ?&lt;/p&gt;
&lt;p&gt;Again THANKS for your awesome work on this. &amp;nbsp; &amp;nbsp;&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#42888</link><pubDate>Wed, 18 Apr 2012 22:02:51 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42888</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;Max, you can easily run it without making a proc. You just have to make some small changes:&lt;/p&gt;
&lt;p&gt;Remove the word &amp;quot;OUTPUT&amp;quot; from line 142&lt;/p&gt;
&lt;p&gt;Remove the closing parentheses from line 147&lt;/p&gt;
&lt;p&gt;Remove the last two lines (the END and GO)&lt;/p&gt;
&lt;p&gt;Remove lines 1-25, and replace them with the word &amp;quot;DECLARE&amp;quot;&lt;/p&gt;
&lt;p&gt;Now it is just one big sql script that you can run without creating any permanent objects. &lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#42896</link><pubDate>Thu, 19 Apr 2012 12:27:39 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42896</guid><dc:creator>max</dc:creator><description>&lt;p&gt;Thanks scott, I did extactly what you said...but it dose not seem to work...i get all the below errors...&lt;/p&gt;
&lt;p&gt;Msg 139, Level 15, State 1, Line 0&lt;/p&gt;
&lt;p&gt;Cannot assign a default value to a local variable.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 359&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@filter&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 387&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@filter_type&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 393&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@filter_type&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 399&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@not_filter_type&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 405&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@not_filter_type&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 411&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@show_sleeping_spids&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 417&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_plans&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 423&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_task_info&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 429&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@format_output&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 435&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@help&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 799&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@output_column_list&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 102, Level 15, State 1, Line 803&lt;/p&gt;
&lt;p&gt;Incorrect syntax near ')'.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 814&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@output_column_list&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 848&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@format_output&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 852&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@format_output&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 857&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@format_output&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 862&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_task_info&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 878&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_task_info&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 884&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 889&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 893&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 897&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 901&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 905&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 909&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 913&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 918&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 922&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_task_info&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 928&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_task_info&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 933&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_locks&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 937&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_transaction_info&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 941&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_transaction_info&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 947&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_outer_command&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 953&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_plans&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 957&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_task_info&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 962&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@find_block_leaders&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 976&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_additional_info&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 102, Level 15, State 1, Line 985&lt;/p&gt;
&lt;p&gt;Incorrect syntax near ')'.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 1, Line 989&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@output_column_list&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 1008&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@output_column_list&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 1014&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@destination_table&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 1018&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@destination_table&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 1024&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@destination_table&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 1044&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@sort_order&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 102, Level 15, State 1, Line 1048&lt;/p&gt;
&lt;p&gt;Incorrect syntax near ')'.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 1059&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@sort_order&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 1, Line 1157&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@sort_order&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 156, Level 15, State 1, Line 1178&lt;/p&gt;
&lt;p&gt;Incorrect syntax near the keyword 'AS'.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 1228&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@return_schema&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 1250&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 1262&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_locks&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 1331&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@filter&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 156, Level 15, State 1, Line 1640&lt;/p&gt;
&lt;p&gt;Incorrect syntax near the keyword 'AS'.&lt;/p&gt;
&lt;p&gt;Msg 102, Level 15, State 1, Line 1682&lt;/p&gt;
&lt;p&gt;Incorrect syntax near ';'.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 1715&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_task_info&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 3399&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@filter&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 3406&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@output_column_list&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 3594&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@output_column_list&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 3639&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_full_inner_text&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 156, Level 15, State 1, Line 3700&lt;/p&gt;
&lt;p&gt;Incorrect syntax near the keyword 'ORDER'.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 3742&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_outer_command&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 3879&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_plans&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 3923&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_plans&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 3961&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_plans&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 4020&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_locks&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 4293&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@find_block_leaders&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 4336&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@get_task_info&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 4545&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@output_column_list&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 4673&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 4679&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@delta_interval&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 102, Level 15, State 1, Line 4684&lt;/p&gt;
&lt;p&gt;Incorrect syntax near ';'.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 4693&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@destination_table&amp;quot;.&lt;/p&gt;
&lt;p&gt;Msg 137, Level 15, State 2, Line 5142&lt;/p&gt;
&lt;p&gt;Must declare the scalar variable &amp;quot;@schema&amp;quot;.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#42898</link><pubDate>Thu, 19 Apr 2012 14:24:49 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42898</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Max: why don't you just create it in tempdb? Or even better, make it into a temporary stored procedure (just put a # before the procedure name). You're allowed to create temp tables, right? This is effectively the same thing. Much easier than editing.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#43026</link><pubDate>Fri, 27 Apr 2012 14:55:45 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:43026</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;If possible, can you add another filter type? I would like to able to filter by session duration (or time). For example, we have a lot of replication agents hitting our servers and they run for a long time. If we're having a performance problem it is usually something that is only a few minutes old. So it would be handy to get a sp_whoisactive result set that only shows the last n number of minutes of sessions. Thanks.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#43033</link><pubDate>Fri, 27 Apr 2012 18:00:36 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:43033</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Chris,&lt;/p&gt;
&lt;p&gt;Yes, it's on the list. Ideally I'd like to create a simple, XML-based custom filter &amp;quot;dialect&amp;quot; that will let you filter by any number of things -- I've had numerous one-off requests for new filter types and I don't want to add them all individually. Stay tuned.&lt;/p&gt;
&lt;p&gt;--Adam&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#43745</link><pubDate>Wed, 06 Jun 2012 07:35:47 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:43745</guid><dc:creator>Phil Carter</dc:creator><description>&lt;p&gt;Hey Adam&lt;/p&gt;
&lt;p&gt;Another stellar job. &lt;/p&gt;
&lt;p&gt;One thing though, I note in the v11.11 notes &lt;/p&gt;
&lt;p&gt;&amp;quot;Added host_process_id to additional_info collection&amp;quot;&lt;/p&gt;
&lt;p&gt;Umm, how do I get that output?&lt;/p&gt;
&lt;p&gt;We have an awesome vendor application that users run via Citrix. It holds locks when an error message appears on the users workstation. This causes a ever increasing blocking chain in the DB. &lt;/p&gt;
&lt;p&gt;We use the Host_name and Host_process_id columns to track down users that have walked away from their workstation and not responded to the error message, thus they hold up database processing for everything.&lt;/p&gt;
&lt;p&gt;This is what I'm running&lt;/p&gt;
&lt;p&gt;EXEC sp_WhoIsActive &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;@find_block_leaders = 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;, @get_task_info = 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;, @get_additional_info = 0&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;, @output_column_list = '[session_id][block%][login_name][host%][host_process_id][program%][sql_text][wait_info]'&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;, @sort_order = '[blocked_session_count] DESC'&lt;/p&gt;
&lt;p&gt;Also, would be great to be able to list out only blocked/blocking sessions ;)&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Phil&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#43752</link><pubDate>Wed, 06 Jun 2012 14:15:14 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:43752</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Phil,&lt;/p&gt;
&lt;p&gt;You want @get_additional_info = 1, not 0.&lt;/p&gt;
&lt;p&gt;As for *only* seeing blocked and blocking sessions -- why? That doesn't seem especially interesting to me, to be honest. Ideally you'd deal with the blocking and then not need that option anymore :-)&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44004</link><pubDate>Fri, 22 Jun 2012 01:34:36 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44004</guid><dc:creator>RIzwan Hassan</dc:creator><description>&lt;p&gt;If I like to filter by DB name... what is the best way to do it. (I am new to SQL DBA role)&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44091</link><pubDate>Tue, 26 Jun 2012 16:01:03 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44091</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Rizwan:&lt;/p&gt;
&lt;p&gt;EXEC sp_whoisactive @filter_type = 'database', @filter = 'your DB name'&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44175</link><pubDate>Mon, 02 Jul 2012 13:07:35 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44175</guid><dc:creator>Rizwan Hassan</dc:creator><description>&lt;p&gt;Thank you and great work!&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44436</link><pubDate>Wed, 25 Jul 2012 14:20:52 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44436</guid><dc:creator>Sergio Pacheco</dc:creator><description>&lt;p&gt;Adam,&lt;/p&gt;
&lt;p&gt;I think you mentioned documentation in an earlier post. &amp;nbsp;Where can I find it? &amp;nbsp;Also, i missed your &amp;quot;No more Guessing&amp;quot; Troubleshooting talk this last April. &amp;nbsp;When/Where do you think you may have it again? &amp;nbsp;Is the recording available for purchase?&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44603</link><pubDate>Tue, 07 Aug 2012 13:54:37 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44603</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Sergio:&lt;/p&gt;
&lt;p&gt;Sorry, the docs aren't finished yet. I've had a very busy year.&lt;/p&gt;
&lt;p&gt;As for &amp;quot;No More Guessing,&amp;quot; are you referring to the delivery at SQLbits? That unfortunately wasn't recorded, but keep your eyes open early next year as I'm sure I'll be delivering it at various places. (The rest of this year, not much will be going on.)&lt;/p&gt;
&lt;p&gt;--Adam&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44684</link><pubDate>Mon, 13 Aug 2012 13:50:58 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44684</guid><dc:creator>Rob Kraft</dc:creator><description>&lt;p&gt;I just discovered sp_whoIsActive and am eager to try it after seeing all the feedback. &amp;nbsp;I am trying to run it right now, but I get no results. &amp;nbsp;I have not read the 50 blog posts, though I have read a scattered few in the attempt to make this stored proc show results. &amp;nbsp;Are there any usage examples?&lt;/p&gt;
&lt;p&gt;I tried no parameters, and I get no records returned no matter which database I run it in. &amp;nbsp;There are plenty of active sessions by users per sp_who.&lt;/p&gt;
&lt;p&gt;I also tried running it with this example but still got no results.&lt;/p&gt;
&lt;p&gt;EXEC sp_whoisactive @filter_type = 'database', @filter = 'your DB name'&lt;/p&gt;
&lt;p&gt;My dbms in SQL2005, my tooling is SQL 2012.&lt;/p&gt;
&lt;p&gt;Should I expect output when ran with no parameters? &amp;nbsp;Could I be missing a step in setting it up to work?&lt;/p&gt;
&lt;p&gt;Thanks for your time and devotion.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44687</link><pubDate>Mon, 13 Aug 2012 14:33:02 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44687</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Rob,&lt;/p&gt;
&lt;p&gt;Should you expect output when run with no parameters? Only if there's something interesting to show you. &lt;/p&gt;
&lt;p&gt;This post explains it: &lt;a rel="nofollow" target="_new" href="http://sqlblog.com/blogs/adam_machanic/archive/2011/04/05/less-data-is-more-data-a-month-of-monitoring-part-5-of-30.aspx"&gt;http://sqlblog.com/blogs/adam_machanic/archive/2011/04/05/less-data-is-more-data-a-month-of-monitoring-part-5-of-30.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;--Adam&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44688</link><pubDate>Mon, 13 Aug 2012 14:35:51 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44688</guid><dc:creator>DanOrc</dc:creator><description>&lt;p&gt;Rob, the procedure must be run on master database and you will see transactions that are currently running, not the finished ones. &lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44689</link><pubDate>Mon, 13 Aug 2012 14:42:17 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44689</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi DanOrc,&lt;/p&gt;
&lt;p&gt;Actually, the proc does not need to be deployed, nor run, in master. It can be put in any database you like. I personally like to put it in master because then it's available everywhere else without using a three-part name. But the decision is yours.&lt;/p&gt;
&lt;p&gt;--Adam&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44690</link><pubDate>Mon, 13 Aug 2012 17:35:19 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44690</guid><dc:creator>Rob Kraft</dc:creator><description>&lt;p&gt;Thanks Adam! &amp;nbsp;That makes sense and&lt;/p&gt;
&lt;p&gt;EXEC sp_WhoIsActive @show_sleeping_spids = 2&lt;/p&gt;
&lt;p&gt;is just what I needed to start getting oriented with the proc!&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44791</link><pubDate>Mon, 20 Aug 2012 14:55:41 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44791</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;Hi Adam,&lt;/p&gt;
&lt;p&gt;I have been using who is active tool for couple of months now and it has already saved us so many time. &amp;nbsp;But i had one question for you. &amp;nbsp;The other day someone requested me to capture the output of my query to see what exactly the SQL statements the session's are running and other metrics that who is active collects. &amp;nbsp;So i thought okay, that is simple. &amp;nbsp;Run your procedure and once i get the output in SSMS, right click on it and do &amp;quot;save results as&amp;quot;. &amp;nbsp;I exported that in quite a few different format(csv, excel, text file) but seems like the output is not readable in any of those file format. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am in no means an expert, but if i were to guess that is happening due to the XML query SQL Text?&lt;/p&gt;
&lt;p&gt;Do you have any suggestions as to how we can export this into a nice format(excel or csv)? &amp;nbsp; &lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44795</link><pubDate>Mon, 20 Aug 2012 17:13:03 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44795</guid><dc:creator>max </dc:creator><description>&lt;p&gt;I know you already have a post on capturing output using create table and such...but i wanted to see if there is anything besides that ?&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44797</link><pubDate>Mon, 20 Aug 2012 17:56:08 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44797</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Max,&lt;/p&gt;
&lt;p&gt;Did you try turning off formatting and exporting only the non-XML columns that are left? (That would mean no query plan, for example.)&lt;/p&gt;
&lt;p&gt;Aside from that I have no idea. Never tried exporting to Excel.&lt;/p&gt;
&lt;p&gt;--Adam&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44798</link><pubDate>Mon, 20 Aug 2012 18:30:18 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44798</guid><dc:creator>max</dc:creator><description>&lt;p&gt;no i did not turn off formatting, how would i do that?&lt;/p&gt;
&lt;p&gt;although i tried just export columns that are non-XML, but wanted to see if there was a way to export the XML column as well( sql text column)..&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44799</link><pubDate>Mon, 20 Aug 2012 18:33:35 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44799</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;If you turn off formatting SQL Text will no longer be XML.&lt;/p&gt;
&lt;p&gt;EXEC sp_whoisactive @format_output = 0&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#44803</link><pubDate>Mon, 20 Aug 2012 22:31:46 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44803</guid><dc:creator>max</dc:creator><description>&lt;p&gt;Thanks Adam, I tried that but no luck. &amp;nbsp;Still the format seems to be out of order if i export it to CSV format. &amp;nbsp;&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#45234</link><pubDate>Mon, 17 Sep 2012 18:44:14 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45234</guid><dc:creator>TheSeventhDawn</dc:creator><description>&lt;p&gt;Adam,&lt;/p&gt;
&lt;p&gt;First off love the tool. Is there a way to kick off this proc execution when spids are suspended? Blocked process threshold and blocked report are excellent but I would like to get the flavor of details that comes with this proc&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#46559</link><pubDate>Fri, 07 Dec 2012 19:49:58 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46559</guid><dc:creator>Chris at DEA not that DEA</dc:creator><description>&lt;p&gt;Mike, I just found out about this sp at a local SQL users group meeting. This is fantastic stuff. Thank you so much for sharing this with us.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#46621</link><pubDate>Wed, 12 Dec 2012 10:46:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46621</guid><dc:creator>Gianluca Sartori</dc:creator><description>&lt;p&gt;Thanks Adam,&lt;/p&gt;
&lt;p&gt;oustanding job as usual! I've been using WhoIsActive for years and it's part of my standard setup for every instance I install.&lt;/p&gt;
&lt;p&gt;It would be great if we could display and filter context_info as well. Sometimes I find it useful to add troubleshooting info in that binary string and I had to tweak your code to use it.&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#46630</link><pubDate>Wed, 12 Dec 2012 14:41:33 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46630</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Gianluca,&lt;/p&gt;
&lt;p&gt;I'll add it to the additional_info collection in the next version. (If &amp;nbsp;you don't see it in the first beta, drop me a note and remind me.) Not sure I'll put a filter in for &amp;nbsp;it, though. Probably not a very common request.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#46672</link><pubDate>Mon, 17 Dec 2012 18:00:04 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46672</guid><dc:creator>max</dc:creator><description>&lt;p&gt;Hi Adam,&lt;/p&gt;
&lt;p&gt;I have been using your tool for quite a while. &amp;nbsp;It works great. &amp;nbsp;But the other day i wanted to try this using sqlcmd. &amp;nbsp;And seems likes its not giving me output that it dose in SSMS....am i doing anything wrong. &amp;nbsp;i tried the regular exec sp_whoisactive also tried disable the out format and stuff...here is what i get...&lt;/p&gt;
&lt;p&gt;C:\oracle\sql&amp;gt;sqlcmd -S servername/instance_name -E&lt;/p&gt;
&lt;p&gt;1&amp;gt; EXEC sp_whoisactive @format_output=0&lt;/p&gt;
&lt;p&gt;2&amp;gt; go&lt;/p&gt;
&lt;p&gt;Warning: Null value is eliminated by an aggregate or other SET operation.&lt;/p&gt;
&lt;p&gt;1&amp;gt;&lt;/p&gt;
&lt;p&gt;2&amp;gt; EXEC sp_WhoIsActive&lt;/p&gt;
&lt;p&gt;3&amp;gt; go&lt;/p&gt;
&lt;p&gt;Warning: Null value is eliminated by an aggregate or other SET operation.&lt;/p&gt;
&lt;p&gt;dd hh:mm:ss.mss&lt;/p&gt;
&lt;p&gt;----------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;----------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;00 00:08:35.220&lt;/p&gt;
&lt;p&gt;Select Id From DWE_Workflows Where Id=-1&lt;/p&gt;
&lt;p&gt;--?&amp;gt;&lt;/p&gt;
&lt;p&gt;00 00:08:35.220&lt;/p&gt;
&lt;p&gt;Select Id From DWE_Workflows Where Id=-1&lt;/p&gt;
&lt;p&gt;--?&amp;gt;&lt;/p&gt;
&lt;p&gt;00 00:08:35.216&lt;/p&gt;
&lt;p&gt;Select Id From DWE_Workflows Where Id=-1&lt;/p&gt;
&lt;p&gt;--?&amp;gt;&lt;/p&gt;
&lt;p&gt;00 00:08:35.216&lt;/p&gt;
&lt;p&gt;Select Id From DWE_Workflows Where Id=-1&lt;/p&gt;
&lt;p&gt;--?&amp;gt;&lt;/p&gt;
&lt;p&gt;00 00:07:28.373&lt;/p&gt;
&lt;p&gt;Select Id From DWE_Workflows Where Id=-1&lt;/p&gt;
&lt;p&gt;--?&amp;gt;&lt;/p&gt;
&lt;p&gt;Warning: Null value is eliminated by an aggregate or other SET operation.&lt;/p&gt;
&lt;p&gt;1&amp;gt;&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#46685</link><pubDate>Tue, 18 Dec 2012 14:34:09 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46685</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Max,&lt;/p&gt;
&lt;p&gt;It seems to work fine on this end, although the output looks like absolute garbage; the proc's output is really optimized for SSMS. The option to turn off the formatting is there for data collection, and it's not going to help with SQLCMD output, since it doesn't decrease the large number of output columns, re-format XML, or anything else. What you'd need to do -- I think -- is collect into a table and then dump the output in a compact textual format. You'd also want to eliminate a number of the columns, such as the procedure text, which are going to add line breaks and ruin the output. But I'm not sure that's worth the effort. Any reason you can't fire up SSMS?&lt;/p&gt;
&lt;p&gt;--Adam&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#46691</link><pubDate>Tue, 18 Dec 2012 18:16:59 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46691</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;We can fire up SSMS and make this run. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The other day we had an issue were we would only login thru SQLCMD, SSMS was taking very long time(like 15 mins to load)...were as SQLCMD was about 1-2 mins to load...&lt;/p&gt;
&lt;p&gt;once in SQLCMD, we wanted to find out what is going on, who is taking the CPU, memory etc etc (which sp_whoisactive provided)...but when i ran spwhoisactive in sqlcmd, the output like you said was Unreadable....so we had to reboot the machine to get everything under control...&lt;/p&gt;
&lt;p&gt;so i have been trying to figure out how to make sp_whoisactive work with SQLCMD....incase we have the issue again....Hope it makes sense...&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#46693</link><pubDate>Tue, 18 Dec 2012 18:39:26 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46693</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;Do you happen to have a quick output as to how it looks like ?? when you can collect into a table and then dump the output in a compact textual format. You'd also want to eliminate a number of the columns, such as the procedure text, which are going to add line breaks and ruin the output&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#46694</link><pubDate>Tue, 18 Dec 2012 19:44:14 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46694</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Max,&lt;/p&gt;
&lt;p&gt;I'm not sure what the output would look like as I've never done it :-)&lt;/p&gt;
&lt;p&gt;I think I would do something like this, one block per session:&lt;/p&gt;
&lt;p&gt;session_id: 123 &amp;nbsp;host_name: xyz &amp;nbsp; &amp;nbsp; login: xyzzy&lt;/p&gt;
&lt;p&gt;CPU: 123 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reads: 456 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Writes: 789 &amp;nbsp; &amp;nbsp; &amp;nbsp; Tempdb: 1234&lt;/p&gt;
&lt;p&gt;Waits: (1x) CXPACKET (5x) PAGEIOLATCH_XX&lt;/p&gt;
&lt;p&gt;[etc...]&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#47109</link><pubDate>Fri, 11 Jan 2013 00:51:14 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47109</guid><dc:creator>HIMANSHU</dc:creator><description>&lt;p&gt;Hi Adam &lt;/p&gt;
&lt;p&gt;I am getting this error &lt;/p&gt;
&lt;p&gt;Warning: Null value is eliminated by an aggregate or other SET operation. &lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#47115</link><pubDate>Fri, 11 Jan 2013 16:10:41 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47115</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Himanshu:&lt;/p&gt;
&lt;p&gt;Ignore it. Maybe I'll make it go away in a future version, but it has no impact on anything.&lt;/p&gt;
&lt;p&gt;--Adam&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#47119</link><pubDate>Fri, 11 Jan 2013 19:15:21 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47119</guid><dc:creator>HIMANSHU</dc:creator><description>&lt;p&gt;Thanks Adam , I little modified it and running as script , its a awesome script .I have one question , under SQLtext column does it only show Tsql command (select,update etc) or it also shows exec procedure . Mostly we run storeprocs in any environmental ,if it shows store procs &lt;/p&gt;
&lt;p&gt;it will be easy to find problematic sps . &lt;/p&gt;
&lt;p&gt;It is human nature to always want more :-) . &lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#47120</link><pubDate>Fri, 11 Jan 2013 19:39:30 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47120</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Himanshu:&lt;/p&gt;
&lt;p&gt;Read this:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://sqlblog.com/blogs/adam_machanic/archive/2011/04/10/commands-batches-and-the-mysteries-of-text-a-month-of-activity-monitoring-part-10-of-30.aspx"&gt;http://sqlblog.com/blogs/adam_machanic/archive/2011/04/10/commands-batches-and-the-mysteries-of-text-a-month-of-activity-monitoring-part-10-of-30.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;--Adam&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#47152</link><pubDate>Mon, 14 Jan 2013 19:26:36 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47152</guid><dc:creator>dbiDBA</dc:creator><description>&lt;p&gt;I love to use your WhoIsActive functionality. Thanks for all your work. But I am having an issue. When the instance is busy and I need results the most, it frequently gives this error:&lt;/p&gt;
&lt;p&gt;&amp;quot;The statement terminated. The maximum recursion 32767 has been exhausted before statement completion.&amp;quot;&lt;/p&gt;
&lt;p&gt;Originally, the maxrecursion was the default 100. I modified the code to increase the maxrecursion limit to the maximum and still frequent hit the limit. Is this something you have seen before? Is there a fix or workaround? Is there a runtime option I can avoid to prevent the error?&lt;/p&gt;
&lt;p&gt;WhoIsActive 11.11 on SQL Server 2008 SP3&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#47153</link><pubDate>Mon, 14 Jan 2013 20:18:07 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47153</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi dbiDBA:&lt;/p&gt;
&lt;p&gt;I am aware of the issue, and will fix it in the next version. The problem is that under load, there can be conditions where the blocking chain is nonsensical and seems to include cycles.&lt;/p&gt;
&lt;p&gt;In the meantime, as a workaround, don't use @find_block_leaders mode when you're seeing that error. I realize that's not a fantastic workaround but it's all I can do for you today.&lt;/p&gt;
&lt;p&gt;--Adam&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#47356</link><pubDate>Mon, 28 Jan 2013 13:49:49 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47356</guid><dc:creator>Shiju Samuel</dc:creator><description>&lt;p&gt;Hi Adam, Is there a way to find out how long a victim of blocking is clogged? -Shiju&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#47357</link><pubDate>Mon, 28 Jan 2013 14:36:11 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47357</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Shiju: Yes; a blocked session will have a LCK_M_* wait in the wait_info column. The wait will include a wait time in milliseconds.&lt;/p&gt;
&lt;p&gt;--Adam&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#47518</link><pubDate>Wed, 06 Feb 2013 17:26:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47518</guid><dc:creator>Dustin Mueller</dc:creator><description>&lt;p&gt;I have to say thank you for all of your hard work that you put into this, because I have found myself using it so often!&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#47954</link><pubDate>Thu, 28 Feb 2013 13:42:45 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47954</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Adam, is there a help file for using your tool? Or is all of that available in comments inside the proc?&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#47955</link><pubDate>Thu, 28 Feb 2013 14:41:39 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47955</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;@Chris: EXEC sp_whoisactive @help = 1&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48247</link><pubDate>Thu, 14 Mar 2013 12:07:40 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48247</guid><dc:creator>yazalpizar</dc:creator><description>&lt;p&gt;Hi Adam, thanks a lot for this great tool, I'm just scratching the surface and it's already really helpful troubleshooting our databases. One question though: I'm going through all your 30 blog posts on april'11 about monitoring and you mentioned the possibility of having all them on one single downlodable file. Does that file exists or you haven't had the time yet to compile all the information? I will continue reading online, but would be great to have it on pdf or any other format that could be used on ebook reader. Thanks again!&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48776</link><pubDate>Thu, 18 Apr 2013 14:10:47 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48776</guid><dc:creator>NewKidInTown</dc:creator><description>&lt;p&gt;I tried to run the script to create the sp and I get the following error:&lt;/p&gt;
&lt;p&gt;Msg 102, Level 15, State 1, Procedure sp_WhoIsActive, Line 533&lt;/p&gt;
&lt;p&gt;Incorrect syntax near '.'.&lt;/p&gt;
&lt;p&gt;Msg 156, Level 15, State 1, Procedure sp_WhoIsActive, Line 3941&lt;/p&gt;
&lt;p&gt;Incorrect syntax near the keyword 'CASE'.&lt;/p&gt;
&lt;p&gt;Msg 156, Level 15, State 1, Procedure sp_WhoIsActive, Line 3979&lt;/p&gt;
&lt;p&gt;Incorrect syntax near the keyword 'CASE'.&lt;/p&gt;
&lt;p&gt;Can someone please help?&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48787</link><pubDate>Fri, 19 Apr 2013 03:56:41 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48787</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;@NewKidInTown: Your database compatibility level is set incorrectly. Change it to at least 90 (SQL Server 2005). This is a common issue for instances that were upgraded from 2000; databases, including master, are not automatically migrated to higher compatibility levels.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48834</link><pubDate>Tue, 23 Apr 2013 15:10:26 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48834</guid><dc:creator>Mike Stuart</dc:creator><description>&lt;p&gt;Adam, thanks for the awesome work on this. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Suggestion / question: we have a LOT of instances in our environment; how about a @version parameter? &amp;nbsp;For example: 'exec sp_WhoIsActive @version = 1' would return something like 'Who Is Active? v11.11 (2012-03-22)', instead of needing to run sp_helptext, scripting out the proc, etc. on every instance in our environment?&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48836</link><pubDate>Tue, 23 Apr 2013 15:34:16 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48836</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;EXEC sp_whoisactive @help = 1&lt;/p&gt;
&lt;p&gt;:-)&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48837</link><pubDate>Tue, 23 Apr 2013 15:49:19 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48837</guid><dc:creator>Mike Stuart</dc:creator><description>&lt;p&gt;... and there it is! &amp;nbsp;Excellent turnaround time, and I didn't even have to download it! &amp;nbsp;You're truly amazing... or I'm an idiot :P &amp;nbsp; Thanks.&lt;/p&gt;
</description></item><item><title>Landed as BI, but databases are a big WTF, what to do? | Question and Answer</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48899</link><pubDate>Sun, 28 Apr 2013 07:24:42 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48899</guid><dc:creator>Landed as BI, but databases are a big WTF, what to do? | Question and Answer</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://qandasys.info/landed-as-bi-but-databases-are-a-big-wtf-what-to-do/"&gt;http://qandasys.info/landed-as-bi-but-databases-are-a-big-wtf-what-to-do/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Kai Borgolte  &amp;raquo; Blog Archive   &amp;raquo; How to Find Slow SQL Server Queries</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48914</link><pubDate>Mon, 29 Apr 2013 09:54:38 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48914</guid><dc:creator>Kai Borgolte  » Blog Archive   » How to Find Slow SQL Server Queries</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.borgolte.ch/?p=714"&gt;http://www.borgolte.ch/?p=714&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48920</link><pubDate>Mon, 29 Apr 2013 14:05:57 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48920</guid><dc:creator>Jordon (HeavenCore)</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Is there a script to drop sp_WhoIsActive and all its dependencies?&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48923</link><pubDate>Mon, 29 Apr 2013 15:32:16 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48923</guid><dc:creator>Cary Davis</dc:creator><description>&lt;p&gt;This thing is cool. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now I've got the power to control the world from right here at my desk. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is great stuff, Thanks Adam. &amp;nbsp;I wanna be you when I grow up. &amp;nbsp;DO NOT ever lose those sunglasses man.&lt;/p&gt;
</description></item><item><title>re: Released: Who is Active v11.11</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48924</link><pubDate>Mon, 29 Apr 2013 16:11:33 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48924</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;@Jordan: DROP PROC sp_WhoIsActive; (But why you'd want to is beyond me :-))&lt;/p&gt;
&lt;p&gt;@Cary: Cheers!&lt;/p&gt;
</description></item><item><title>Five Ways to Improve Your Productivity with SSMS | DB NewsFeed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48932</link><pubDate>Tue, 30 Apr 2013 11:03:42 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48932</guid><dc:creator>Five Ways to Improve Your Productivity with SSMS | DB NewsFeed</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.dbnewsfeed.com/2013/04/30/five-ways-to-improve-your-productivity-with-ssms/"&gt;http://www.dbnewsfeed.com/2013/04/30/five-ways-to-improve-your-productivity-with-ssms/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Estimating Remaining Query Time | FradenSQL</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx#48987</link><pubDate>Tue, 07 May 2013 14:41:36 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48987</guid><dc:creator>Estimating Remaining Query Time | FradenSQL</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.fradensql.com/2013/05/estimating-remaining-query-time/"&gt;http://www.fradensql.com/2013/05/estimating-remaining-query-time/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>