<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://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>Search results matching tags 'sp_ssiscatalog' and 'ssis'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=sp_ssiscatalog,ssis&amp;orTags=0</link><description>Search results matching tags 'sp_ssiscatalog' and 'ssis'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>sp_ssiscatalog v1.0.3.0 available now [SSIS]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/03/15/sp-ssiscatalog-v1-0-3-0-available-now-ssis.aspx</link><pubDate>Fri, 15 Mar 2013 22:19:07 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48269</guid><dc:creator>jamiet</dc:creator><description>&lt;p&gt;I’ve just put out a new version of sp_ssiscatalog. The main change is requesting a list of executions using:&lt;/p&gt;  &lt;blockquote&gt;   &lt;pre style="list-style-type:disc;font-family:;background:white;color:;text-align:left;"&gt;&lt;font face="Consolas"&gt;&lt;span style="color:;"&gt;&lt;font color="#0000ff" size="4"&gt;&lt;strong&gt;exec&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="4"&gt;&lt;strong&gt; sp_ssiscatalog&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;&amp;#160;&lt;/font&gt;&lt;/span&gt;@operation_type&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#ff0000"&gt;'execs'&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;
&lt;/font&gt;&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;p&gt;returns a new field called relative_duration:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_6D51F050.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_60E3CD27.png" width="709" height="330" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This length of the “bar” in that field represents the duration of that execution relative to all the other executions in the resultset. Put more simply, its an attempt to simply visualise which executions took the longest to complete.&lt;/p&gt;

&lt;p&gt;The other change in this release is the addition of a new parameter called @ot which is simply a short form of @operation_type. Its there because I basically got fed up of typing @operation_type every time I wanted a list of executions. hence the statement above can now be written as:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;font face="Consolas"&gt;&lt;span style="color:;"&gt;&lt;font color="#0000ff" size="4"&gt;&lt;strong&gt;exec&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="4"&gt;&lt;strong&gt; sp_ssiscatalog&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;&amp;#160;&lt;/font&gt;&lt;/span&gt;@ot&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#ff0000"&gt;'execs'&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That’s it, you can download the latest bits from &lt;a title="http://ssisreportingpack.codeplex.com/releases/view/103452" href="http://ssisreportingpack.codeplex.com/releases/view/103452"&gt;http://ssisreportingpack.codeplex.com/releases/view/103452&lt;/a&gt;. Installation instructions are in my previous blog post on sp_ssiscatalog &lt;a title="http://sqlblog.com/blogs/jamie_thomson/archive/2013/03/12/sp-ssiscatalog-v1-0-2-0-now-available-for-download.aspx" href="http://sqlblog.com/blogs/jamie_thomson/archive/2013/03/12/sp-ssiscatalog-v1-0-2-0-now-available-for-download.aspx" target="_blank"&gt;sp_ssiscatalog v1.0.2.0 now available for download [SSIS]&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Look for more updates coming soon, I’m hoping to pick up the pace of iterations on this.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://twitter.com/jamiet" target="_blank"&gt;@Jamiet&lt;/a&gt;&lt;/p&gt;</description></item><item><title>sp_ssiscatalog v1.0.2.0 now available for download [SSIS]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/03/11/sp-ssiscatalog-v1-0-2-0-now-available-for-download.aspx</link><pubDate>Mon, 11 Mar 2013 22:51:20 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48182</guid><dc:creator>jamiet</dc:creator><description>&lt;h2&gt;v1.0.2.0 – what’s in it?&lt;/h2&gt;  &lt;p&gt;Things have been a bit quiet on the sp_ssiscatalog front since &lt;a href="http://sqlblog.com/blogs/jamie_thomson/archive/2012/12/05/documenting-sp-ssiscatalog.aspx" target="_blank"&gt;I last blogged about it three months ago in December 2012&lt;/a&gt;. Rest-assured development continues apace however and today I’m making available a minor update, v1.0.2.0 which is now available for download &lt;a href="http://ssisreportingpack.codeplex.com/releases/view/103261" target="_blank"&gt;from Codeplex&lt;/a&gt;. For those that don’t know I describe sp_ssiscatalog as:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;sp_ssiscatalog is a stored procedure that makes it easy to query for information that is strewn around the SSIS Catalog.&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;There aren’t too many functional changes in this release, it is more focused on making sp_ssiscatalog easier to use. Back in &lt;a title="http://sqlblog.com/blogs/jamie_thomson/archive/2012/12/05/documenting-sp-ssiscatalog.aspx" href="http://sqlblog.com/blogs/jamie_thomson/archive/2012/12/05/documenting-sp-ssiscatalog.aspx" target="_blank"&gt;Documenting sp_ssiscatalog&lt;/a&gt; I explained how I was adding documentation to the messages tab of SSMS. Hence as of this new release when you execute sp_ssiscatalog you will see information such as this:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_446C89A2.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_5021D0D4.png" width="888" height="344" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_599A8F4A.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_05D7162F.png" width="890" height="266" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;which I think should be very useful for anyone that wants to use sp_ssiscatalog to its fullest. Even I who wrote the thing and has been using it day-in, day-out for quite some time now can’t remember the names of all the parameters – now I no longer have to!&lt;/p&gt;  &lt;p&gt;Note that you can turn off the display of the documentation using the @show_docs parameter:&lt;/p&gt;  &lt;blockquote&gt;   &lt;pre style="list-style-type:disc;font-family:;background:white;color:;text-align:left;"&gt;&lt;font face="Consolas"&gt;&lt;font size="4"&gt;&lt;strong&gt;&lt;font size="2"&gt;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;exec&lt;/font&gt;&lt;/span&gt; sp_ssiscatalog&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;&amp;#160;&lt;/font&gt;&lt;/span&gt;@show_docs&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;=&lt;/font&gt;&lt;/span&gt;0&lt;/font&gt;&lt;/strong&gt;
&lt;/font&gt;&lt;/font&gt;&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you want to display &lt;em&gt;only&lt;/em&gt; the documentation and not actually have sp_ssiscatalog do any querying of the SSIS Catalog its @show_docs_only:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;pre style="list-style-type:disc;font-family:;background:white;color:;text-align:left;"&gt;&lt;font face="Consolas"&gt;&lt;span style="color:;"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;strong&gt;exec&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;&lt;strong&gt;&lt;font size="2"&gt; sp_ssiscatalog&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;&amp;#160;&lt;/font&gt;&lt;/span&gt;@show_docs_only&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;=&lt;/font&gt;&lt;/span&gt;1&lt;/font&gt;&lt;/strong&gt;
&lt;/font&gt;&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you have any suggestions for future enhancements please put them in the comments below or submit them to &lt;a href="http://ssisreportingpack.codeplex.com/discussions" target="_blank"&gt;the discussions page on the Codeplex site&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;As a reminder, here is the sort of thing you can do with sp_ssiscatalog:&lt;/p&gt;

&lt;pre style="list-style-type:disc;font-family:;background:white;color:;text-align:left;"&gt;&lt;font face="Consolas"&gt;&lt;font size="2"&gt;&lt;span style="color:;"&gt;&lt;font color="#008000"&gt;&lt;strong&gt;--Return all failed executions&amp;#160; &lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/font&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;EXEC&lt;/font&gt;&lt;/span&gt; [dbo]&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;.&lt;/font&gt;&lt;/span&gt;[sp_ssiscatalog]&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;&amp;#160;&lt;/font&gt;&lt;/span&gt;@operation_type&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#ff0000"&gt;'execs'&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;,&lt;/font&gt;&lt;/span&gt;@execs_status_desc&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#ff0000"&gt;'failed'&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;/pre&gt;

&lt;pre style="list-style-type:disc;font-family:;background:white;color:;text-align:left;"&gt;&lt;font face="Consolas"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="color:;"&gt;&lt;font color="#ff0000"&gt;&lt;/font&gt;&lt;/span&gt;
&lt;span style="color:;"&gt;&lt;font color="#008000"&gt;--Return all executions for a specified folder&lt;/font&gt;&lt;/span&gt;
&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;EXEC&lt;/font&gt;&lt;/span&gt; [dbo]&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;.&lt;/font&gt;&lt;/span&gt;[sp_ssiscatalog]&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;&amp;#160;&lt;/font&gt;&lt;/span&gt;@operation_type&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#ff0000"&gt;'execs'&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;,&lt;/font&gt;&lt;/span&gt;@execs_folder_name&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#ff0000"&gt;'My folder'&lt;/font&gt;&lt;/span&gt;&amp;#160; &lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;/pre&gt;

&lt;pre style="list-style-type:disc;font-family:;background:white;color:;text-align:left;"&gt;&lt;font face="Consolas"&gt;&lt;font size="2"&gt;&lt;strong&gt;
&lt;span style="color:;"&gt;&lt;font color="#008000"&gt;--Return all executions of a specified package in a specified project&lt;/font&gt;&lt;/span&gt;
&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;EXEC&lt;/font&gt;&lt;/span&gt; [dbo]&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;.&lt;/font&gt;&lt;/span&gt;[sp_ssiscatalog]&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;&amp;#160;&lt;/font&gt;&lt;/span&gt;@operation_type&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#ff0000"&gt;'execs'&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;,&lt;/font&gt;&lt;/span&gt;@execs_project_name&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#ff0000"&gt;'My project'&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;,&lt;/font&gt;&lt;/span&gt; @execs_package_name&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="color:;"&gt;&lt;font color="#ff0000"&gt;&lt;strong&gt;'Pkg.dtsx'&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/pre&gt;

&lt;pre style="list-style-type:disc;font-family:;background:white;color:;text-align:left;"&gt;&lt;font face="Consolas"&gt;&lt;font size="2"&gt;&lt;span style="color:;"&gt;&lt;font color="#008000"&gt;&lt;strong&gt;&lt;br /&gt;--Return information about the most recent execution&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;
&lt;strong&gt;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;EXEC&lt;/font&gt;&lt;/span&gt; [dbo]&lt;span style="color:;"&gt;&lt;font color="#808080"&gt;.&lt;/font&gt;&lt;/span&gt;[sp_ssiscatalog]&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;/pre&gt;

&lt;p&gt;One last thing, if sp_ssiscatalog is useful to you and you’d like to support future development feel free to donate to my personal beer fund at &lt;a href="http://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;amp;business=jamie@jamie-thomson.net&amp;amp;item_name=Supporting%20sp_ssiscatalog"&gt;http://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;amp;business=jamie@jamie-thomson.net&amp;amp;item_name=Supporting%20sp_ssiscatalog&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;
  &lt;hr /&gt;&lt;/p&gt;

&lt;h2&gt;Installation Instructions&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;Download the zip file at &lt;a href="http://ssisreportingpack.codeplex.com/releases/view/103261" target="_blank"&gt;DB v1.0.2.0&lt;/a&gt;. It contains two files, SsisReportingPack.dacpac &amp;amp; SSISDB.dacpac &lt;/li&gt;

  &lt;li&gt;Unzip to a folder of your choosing &lt;/li&gt;

  &lt;li&gt;Open a command prompt and change to the directory into which you unzipped the files &lt;/li&gt;

  &lt;li&gt;Execute: 
    &lt;ul&gt;
      &lt;li&gt;&amp;quot;%PROGRAMFILES(x86)%\Microsoft SQL Server\110\DAC\bin\sqlpackage.exe&amp;quot; /a:Publish /tdn:SsisReportingPack /sf:SSISReportingPack.dacpac /v:SSISDB=SSISDB /tsn:(local) 
        &lt;br /&gt;(/tsn specifies the target server, change as appropriate. /tdn specifies the database name, you can call it whatever you like.) &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If everything works OK you’ll see something like the following:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_7654045F.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_41D33217.png" width="645" height="629" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will (if it doesn’t already exist) create a database called [SsisReportingPack] (or whatever you chose to call it) which contains [dbo].[sp_ssiscatalog].&lt;/p&gt;

&lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_31E3ED53.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_310B8769.png" width="353" height="397" /&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>sp_ssiscatalog v1.0.1.0 now available for download</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/11/20/sp-ssiscatalog-v1-0-1-0-now-available-for-download.aspx</link><pubDate>Tue, 20 Nov 2012 21:42:09 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46321</guid><dc:creator>jamiet</dc:creator><description>&lt;p&gt;13 days ago I wrote a blog post entitled &lt;a href="http://sqlblog.com/blogs/jamie_thomson/archive/2012/11/07/introducing-sp-ssiscatalog-v1-0-0-0.aspx" target="_blank"&gt;Introducing sp_ssiscatalog (v1.0.0.0)&lt;/a&gt; in which I first made mention of sp_ssiscatalog, an open source stored procedure intended to make it easy to query the SSIS Catalog. I have been working on some enhancements since then and hence &lt;a href="http://ssisreportingpack.codeplex.com/releases/view/98006" target="_blank"&gt;v1.0.1.0 is now available for download from Codeplex&lt;/a&gt;.&lt;/p&gt;  &lt;h3&gt;What’s new in this release&lt;/h3&gt;  &lt;p&gt;This release includes the following enhancements:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;[execution_id] now gets returned in a call to      &lt;br /&gt;      &lt;br /&gt;&lt;font color="#0000ff"&gt;EXEC &lt;/font&gt;&lt;font color="#000000"&gt;[dbo].[sp_ssiscatalog] &lt;/font&gt;&lt;font color="#434343"&gt;@operation_type&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;font color="#ff0000"&gt;'exec'&lt;/font&gt;&lt;font color="#808080"&gt;;&lt;/font&gt;       &lt;br /&gt;      &lt;br /&gt;&lt;img src="http://jamiekt.files.wordpress.com/2012/11/exec_execution_id1.jpg" width="870" height="397" /&gt;       &lt;br /&gt;      &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Filter events by specifying packages to ignore      &lt;br /&gt;&lt;font color="#0000ff"&gt;EXEC &lt;/font&gt;&lt;font color="#000000"&gt;[dbo].[sp_ssiscatalog] &lt;/font&gt;&lt;font color="#434343"&gt;@operation_type&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;font color="#ff0000"&gt;'exec'&lt;/font&gt;&lt;font color="#808080"&gt;,&lt;/font&gt;&lt;font color="#434343"&gt;@exec_events_packagesexcluded&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;font color="#ff0000"&gt;'SomePackage.dtsx,AnotherPackage.dtsx'&lt;/font&gt;&lt;font color="#808080"&gt;;        &lt;br /&gt;&lt;/font&gt;      &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;[event_message_id] is now returned in a list of events      &lt;br /&gt;      &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;List of executions can now be filtered via a minimum and maximum execution_id      &lt;br /&gt;      &lt;br /&gt;&lt;font color="#0000ff"&gt;EXEC &lt;/font&gt;&lt;font color="#000000"&gt;[dbo].[sp_ssiscatalog] &lt;/font&gt;&lt;font color="#434343"&gt;@operation_type&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;font color="#ff0000"&gt;'execs'&lt;/font&gt;&lt;font color="#808080"&gt;,&lt;/font&gt;&lt;font color="#434343"&gt;@execs_minimum_execution_id&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;font color="#000000"&gt;198&lt;/font&gt;&lt;font color="#808080"&gt;,&lt;/font&gt;&lt;font color="#434343"&gt;@execs_maximum_execution_id&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;font color="#000000"&gt;201&lt;/font&gt;       &lt;br /&gt;      &lt;br /&gt;&lt;img src="http://jamiekt.files.wordpress.com/2012/11/execs_minmax.jpg" width="870" height="397" /&gt;       &lt;br /&gt;      &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Events resultsets now have a field, [event_message_context_xml] that contains an XML document containing all [event_message_context] info (if any exists)      &lt;br /&gt;      &lt;br /&gt;&lt;img src="http://jamiekt.files.wordpress.com/2012/11/exec_event_message_context1.jpg" width="868" height="396" /&gt;       &lt;br /&gt;&lt;img src="http://jamiekt.files.wordpress.com/2012/11/exec_event_message_context2.jpg" width="518" height="319" /&gt; &lt;/li&gt; &lt;/ul&gt;  &lt;h3&gt;Installation instructions&lt;/h3&gt;  &lt;ol&gt;   &lt;li&gt;Download the zip file at &lt;a href="http://ssisreportingpack.codeplex.com/releases/view/98006" target="_blank"&gt;DB v1.0.1.0&lt;/a&gt;. It contains two files, SsisReportingPack.dacpac &amp;amp; SSISDB.dacpac &lt;/li&gt;    &lt;li&gt;Unzip to a folder of your choosing &lt;/li&gt;    &lt;li&gt;Open a command prompt and change to the directory into which you unzipped the files &lt;/li&gt;    &lt;li&gt;Execute:&lt;/li&gt; &lt;/ol&gt;  &lt;ul&gt;   &lt;li&gt;&amp;quot;%PROGRAMFILES(x86)%\Microsoft SQL Server\110\DAC\bin\sqlpackage.exe&amp;quot; /a:Publish /tdn:SsisReportingPack /sf:SSISReportingPack.dacpac /v:SSISDB=SSISDB /tsn:(local)     &lt;br /&gt;(/tsn specifies the target server. Change as appropriate.)&lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;If everything works OK you’ll see something like the following:&lt;/p&gt;    &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_264776A2.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_1E4FD440.png" width="508" height="334" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;or&lt;/p&gt;    &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_0B2EA794.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_631BF874.png" width="513" height="386" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;depending on whether the target database already exists or not&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This will create a database called [SsisReportingPack] which contains [dbo].[sp_ssiscatalog]&lt;/p&gt;  &lt;blockquote&gt;&lt;img src="http://sqlblog.com/blogs/jamie_thomson/image_39D1CBD9.png" /&gt;&lt;/blockquote&gt;  &lt;p&gt;Feedback is welcomed!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://twitter.com/jamiet" target="_blank"&gt;@Jamiet&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Introducing sp_ssiscatalog (v1.0.0.0)</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/11/06/introducing-sp-ssiscatalog-v1-0-0-0.aspx</link><pubDate>Tue, 06 Nov 2012 23:21:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45988</guid><dc:creator>jamiet</dc:creator><description>&lt;p&gt;Regular readers of my blog may know that over the last year I have made available a suite of SQL Server Reporting Services (SSRS) reports that provide visualisations of the data in the SQL Server Integration Services (SSIS) 2012 Catalog. Those reports are available at &lt;a href="http://ssisreportingpack.codeplex.com"&gt;http://ssisreportingpack.codeplex.com&lt;/a&gt;. As I have built these reports and used them myself on a real life project a couple of things have dawned on me:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;As soon as your SSIS Catalog gets a significant amount of data in it the performance of the reports degrades rapidly. This is hampered by the fact that there are limitations as to the SQL statements that I can embed within a SSRS report. &lt;/li&gt;    &lt;li&gt;SSIS professionals are data guys at heart and those types of people feel more comfortable in a query environment rather than having to go through the rigmarole of standing up a reporting server (well, I know I do anyway) &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Hence I have decided to take a different tack with the reporting pack. Taking my lead from Adam Machanic’s &lt;a href="http://sqlblog.com/blogs/adam_machanic/archive/tags/who+is+active/default.aspx" target="_blank"&gt;sp_whoisactive&lt;/a&gt; and Brent Ozar’s &lt;a href="http://www.brentozar.com/blitz/" target="_blank"&gt;sp_blitz&lt;/a&gt; I have produced sp_ssiscatalog, a stored procedure that makes it easy to get at the crucial data in the SSIS Catalog. I will spend the rest of this blog explaining exactly what sp_ssiscatalog does and how to use it but if you would rather just download the bits yourself and start to play you can download v1.0.0.0 from &lt;a href="http://ssisreportingpack.codeplex.com/releases/view/97327" target="_blank"&gt;DB v1.0.0.0&lt;/a&gt;.&lt;/p&gt;  &lt;h2&gt;Usage Scenarios&lt;/h2&gt;  &lt;h3&gt;Most Recent Execution&lt;/h3&gt; I find that the most frequent information that one needs to get from the SSIS Catalog is information pertaining to the most recent execution. Hence if you execute sp_ssiscatalog with no parameters, that is exactly what you will get.   &lt;blockquote&gt;   &lt;pre style="font-size:12px;"&gt;&lt;font color="blue" size="2"&gt;&lt;b&gt;EXEC &lt;/b&gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;font size="2"&gt;&lt;b&gt;[dbo].[sp_ssiscatalog]&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;&lt;/font&gt;&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;blockquote&gt;&lt;img title="sp_ssiscatalog_basic.png" alt="sp_ssiscatalog_basic.png" src="http://i3.codeplex.com/Download?ProjectName=ssisreportingpack&amp;amp;DownloadId=526651" width="785" height="291" /&gt;&lt;/blockquote&gt;
This will return up to 5 resultsets: 

&lt;ul&gt;
  &lt;li&gt;EXECUTION - Summary information about the execution including status, start time &amp;amp; end time &lt;/li&gt;

  &lt;li&gt;EVENTS - All events that occurred during the execution &lt;/li&gt;

  &lt;li&gt;OnError,OnTaskFailed - All events where event_name is either OnError or OnTaskFailed &lt;/li&gt;

  &lt;li&gt;OnWarning - All events where event_name is OnWarning &lt;/li&gt;

  &lt;li&gt;EXECUTABLE_STATS - Duration and execution result of every executable in the execution &lt;/li&gt;
&lt;/ul&gt;
All 5 resultsets will be displayed if there is any data satisfying that resultset. In other words, if there are no (for example) OnWarning events then the OnWarning resultset will not be displayed. 

&lt;br /&gt;The display of these 5 resultsets can be toggled respectively by these 5 optional parameters (all of which are of type BIT): 

&lt;ul&gt;
  &lt;li&gt;@exec_execution &lt;/li&gt;

  &lt;li&gt;@exec_events &lt;/li&gt;

  &lt;li&gt;@exec_errors &lt;/li&gt;

  &lt;li&gt;@exec_warnings &lt;/li&gt;

  &lt;li&gt;@exec_executable_stats &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Any Execution&lt;/h3&gt;
As just explained the default behaviour is to supply data for the most recent execution. If you wish to specify which execution the data should return data for simply supply the execution_id as a parameter: 

&lt;blockquote&gt;
  &lt;pre style="font-size:12px;"&gt;&lt;b&gt;&lt;font color="blue" size="2"&gt;EXEC &lt;/font&gt;&lt;font color="black"&gt;&lt;font size="2"&gt;[dbo].[sp_ssiscatalog] 6&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;h3&gt;All Executions&lt;/h3&gt;
sp_ssiscatalog can also return information about all executions: 

&lt;blockquote&gt;&lt;b&gt;&lt;font color="#0000ff"&gt;EXEC &lt;/font&gt;&lt;font color="#000000"&gt;[dbo].[sp_ssiscatalog] &lt;/font&gt;&lt;font color="#434343"&gt;@operation_type&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/b&gt;&lt;font color="#ff0000"&gt;&lt;b&gt;'execs'&lt;/b&gt; 

    &lt;br /&gt;

    &lt;br /&gt;&lt;/font&gt;&lt;/blockquote&gt;

&lt;blockquote&gt;&lt;img title="sp_ssiscatalog_executions.png" alt="sp_ssiscatalog_executions.png" src="http://i3.codeplex.com/Download?ProjectName=ssisreportingpack&amp;amp;DownloadId=526650" width="758" height="281" /&gt;&lt;/blockquote&gt;
The most recent execution will appear at the top. 

&lt;br /&gt;sp_ssiscatalog provides a number of parameters that enable you to filter the resultset: 

&lt;ul&gt;
  &lt;li&gt;@execs_folder_name &lt;/li&gt;

  &lt;li&gt;@execs_project_name &lt;/li&gt;

  &lt;li&gt;@execs_package_name &lt;/li&gt;

  &lt;li&gt;@execs_executed_as_name &lt;/li&gt;

  &lt;li&gt;@execs_status_desc &lt;/li&gt;
&lt;/ul&gt;
Some typical usages might be: 

&lt;blockquote&gt;&lt;b&gt;&lt;font color="#008040"&gt;//Return all failed executions&lt;/font&gt; &lt;/b&gt;

  &lt;br /&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;font color="#0000ff"&gt;EXEC &lt;/font&gt;&lt;font color="#000000"&gt;[dbo].[sp_ssiscatalog] &lt;/font&gt;&lt;font color="#434343"&gt;@operation_type&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;font color="#ff0000"&gt;'execs'&lt;/font&gt;&lt;font color="#808080"&gt;,&lt;/font&gt;&lt;font color="#434343"&gt;@execs_status_desc&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;font size="2"&gt;&lt;b&gt;'failed' 
        &lt;br /&gt;&lt;/b&gt;&lt;/font&gt;

    &lt;br /&gt;&lt;/font&gt;&lt;/blockquote&gt;

&lt;blockquote&gt;&lt;b&gt;&lt;font color="#008040"&gt;//Return all executions for a specified folder&lt;/font&gt; 

    &lt;br /&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;EXEC &lt;/font&gt;&lt;font color="#000000"&gt;[dbo].[sp_ssiscatalog] &lt;/font&gt;&lt;font color="#434343"&gt;@operation_type&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;font color="#ff0000"&gt;'execs'&lt;/font&gt;&lt;font color="#808080"&gt;,&lt;/font&gt;&lt;font color="#434343"&gt;@execs_folder_name&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;font color="#ff0000"&gt;&lt;b&gt;&lt;font size="2"&gt;'My folder'&lt;/font&gt; 

      &lt;br /&gt;

      &lt;br /&gt;&lt;/b&gt;&lt;/font&gt;&lt;/blockquote&gt;

&lt;blockquote&gt;&lt;b&gt;&lt;font color="#008040"&gt;//Return all executions of a specified package in a specified project&lt;/font&gt; 

    &lt;br /&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;EXEC &lt;/font&gt;&lt;font color="#000000"&gt;[dbo].[sp_ssiscatalog] &lt;/font&gt;&lt;font color="#434343"&gt;@operation_type&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;font color="#ff0000"&gt;'execs'&lt;/font&gt;&lt;font color="#808080"&gt;,&lt;/font&gt;&lt;font color="#434343"&gt;@execs_project_name&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;font color="#ff0000"&gt;'My project'&lt;/font&gt;&lt;font color="#808080"&gt;, &lt;/font&gt;&lt;font color="#434343"&gt;@execs_package_name&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;font size="2"&gt;'Pkg.dtsx'&lt;/font&gt;&lt;/font&gt; &lt;/b&gt;&lt;/blockquote&gt;

&lt;h2&gt;Installing sp_ssicatalog&lt;/h2&gt;

&lt;p&gt;Under the covers sp_ssiscatalog actually calls many other stored procedures and functions hence creating it on your server is not simply a case of running a CREATE PROCEDURE script. I maintain the code in an SQL Server Data Tools (SSDT) database project which means that you have two ways of obtaining it.&lt;/p&gt;

&lt;h3&gt;Download the source code&lt;/h3&gt;

&lt;p&gt;You can download the latest (at the time of writing) source code from &lt;a title="http://ssisreportingpack.codeplex.com/SourceControl/changeset/view/70192" href="http://ssisreportingpack.codeplex.com/SourceControl/changeset/view/70192"&gt;http://ssisreportingpack.codeplex.com/SourceControl/changeset/view/70192&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_7DE5D5BD.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_0FE1F37E.png" width="746" height="492" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Hit the download button to download all the source code in a zip file. The contents of that zip file will include an SSDT database project which you can open up in SSDT and publish just like any other SSDT database project. You can publish to a new database or any existing database, even [SSISDB] if you prefer.&lt;/p&gt;

&lt;h3&gt;Download a dacpac&lt;/h3&gt;

&lt;p&gt;Maintaining the code in an SSDT database project means that it can all get packaged up into a dacpac that you can then publish to your SQL Server. That dacpac is available in a zip file that is downloadable from &lt;a href="http://ssisreportingpack.codeplex.com/releases/view/97327" target="_blank"&gt;DB v1.0.0.0&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_7C6D7B25.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_41A5D24F.png" width="601" height="387" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The zip file actually contains two dacpacs:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_446B8742.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_3F88D386.png" width="230" height="118" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;SSISReportingPack.dacpac is the one that contains sp_ssiscatalog however SSISDB.dacpac represents all of the objects in the SSIS Catalog hence is a pre-requisite and has to be bundled along for the ride. Simply unzip these two files into a folder.&lt;/p&gt;

&lt;p&gt;Ordinarily a dacpac can be deployed to a SQL Server from SSMS using the Deploy Dacpac wizard however in this case there is a limitation. Due to sp_ssiscatalog referring to objects in the SSIS Catalog (which it has to do of course) the dacpac contains a SqlCmd variable to store the name of the database that underpins the SSIS Catalog; unfortunately the Deploy Dacpac wizard in SSMS has a rather gaping limitation in that it cannot deploy dacpacs containing SqlCmd variables. Hence, we can use the command-line tool, sqlpackage.exe, instead. Don’t worry if reverting to the command-line sounds a little daunting, I assure you it is not. Simply open a command-prompt and cd to the folder containing the unzipped dacpacs:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/SNAGHTML4323bf97_7A3A1686.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="SNAGHTML4323bf97" border="0" alt="SNAGHTML4323bf97" src="http://sqlblog.com/blogs/jamie_thomson/SNAGHTML4323bf97_thumb_19108A65.png" width="564" height="128" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Type:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;div align="left"&gt;&amp;quot;%PROGRAMFILES(x86)%\Microsoft SQL Server\110\DAC\bin\sqlpackage.exe&amp;quot; /action:Publish /TargetDatabaseName:SsisReportingPack /SourceFile:SSISReportingPack.dacpac /Variables:SSISDB=SSISDB /TargetServerName:(local) &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;or the shortened form:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;div align="left"&gt;&amp;quot;%PROGRAMFILES(x86)%\Microsoft SQL Server\110\DAC\bin\sqlpackage.exe&amp;quot; /a:Publish /tdn:SsisReportingPack /sf:SSISReportingPack.dacpac /v:SSISDB=SSISDB /tsn:(local) &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;remembering to set your server name appropriately (here mine is set to “(local)” ).&lt;/p&gt;

&lt;p&gt;If everything works successfully you will see this:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/SNAGHTML4322c773_5EB51483.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="SNAGHTML4322c773" border="0" alt="SNAGHTML4322c773" src="http://sqlblog.com/blogs/jamie_thomson/SNAGHTML4322c773_thumb_6F4D0F71.png" width="590" height="456" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And you’re done! You’ll have a new database called [SsisReportingPack] which contains sp_ssiscatalog:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_39D1CBD9.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_38F965EF.png" width="284" height="324" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;Good luck with sp_ssiscatalog. I have been using it extensively on my own projects recently and it has proved to be very useful indeed. Rest-assured however, I will be adding many new capabilities in the future.&lt;/p&gt;

&lt;p&gt;Feedback is welcome.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://twitter.com/jamiet" target="_blank"&gt;@Jamiet&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>