<?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>Introducing sp_ssiscatalog (v1.0.0.0)</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/11/07/introducing-sp-ssiscatalog-v1-0-0-0.aspx</link><description>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</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Introducing sp_ssiscatalog (v1.0.0.0)</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/11/07/introducing-sp-ssiscatalog-v1-0-0-0.aspx#45992</link><pubDate>Wed, 07 Nov 2012 06:56:32 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45992</guid><dc:creator>Koen Verbeeck</dc:creator><description>&lt;p&gt;This seems awesome. I'll try it out soon.&lt;/p&gt;
</description></item><item><title>re: Introducing sp_ssiscatalog (v1.0.0.0)</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/11/07/introducing-sp-ssiscatalog-v1-0-0-0.aspx#46029</link><pubDate>Thu, 08 Nov 2012 16:03:17 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46029</guid><dc:creator>mbourgon</dc:creator><description>&lt;p&gt;Jamie, can I request some functionality? &amp;nbsp;We're trying to get SSIS 2012 jobs to email failure info, since the default sysjobhistory is, honestly, useless (we might be able to get it by changing the subevent type, then the logging mode, of the job step. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;So I currently have the below code that will get the package that was run for a particular job/step (getting the actual job name will be done via tokens; I left placeholder code to find the most recent)&lt;/p&gt;
&lt;p&gt;DECLARE @full_ssis_command VARCHAR(4000)&lt;/p&gt;
&lt;p&gt;		,	@job_id UNIQUEIDENTIFIER&lt;/p&gt;
&lt;p&gt;		,	@job_step_id INT&lt;/p&gt;
&lt;p&gt;--get most recent failed SSIS package&lt;/p&gt;
&lt;p&gt;SELECT TOP 1 @job_id = job_id FROM msdb.dbo.sysjobhistory WHERE run_status &amp;lt;&amp;gt; 1 AND step_id &amp;gt; 0 AND message LIKE '%SQL Server Execute Package Utility%' ORDER BY instance_id DESC&lt;/p&gt;
&lt;p&gt;--determine which job_step&lt;/p&gt;
&lt;p&gt;SELECT TOP 1 @job_step_id = step_id FROM msdb.dbo.sysjobhistory WHERE run_status &amp;lt;&amp;gt; 1 AND step_id &amp;gt; 0 AND job_id = @job_id ORDER BY instance_id DESC&lt;/p&gt;
&lt;p&gt;SELECT @full_ssis_command = command FROM msdb.dbo.sysjobsteps WHERE job_id = @job_id AND step_id = @job_step_id&lt;/p&gt;
&lt;p&gt;IF @full_ssis_command LIKE '%.dtsx%'&lt;/p&gt;
&lt;p&gt;BEGIN	&lt;/p&gt;
&lt;p&gt;	SELECT RIGHT(LEFT(@full_ssis_command,CHARINDEX('.dtsx',@full_ssis_command)-1),CHARINDEX('\',REVERSE(LEFT(@full_ssis_command,CHARINDEX('.dtsx',@full_ssis_command)-1)))-1)+'.dtsx'&lt;/p&gt;
&lt;p&gt;END &lt;/p&gt;
&lt;p&gt;So, the next steps for me (and hence my request) would be:&lt;/p&gt;
&lt;p&gt;* Having sp_ssiscatalog return only one result set, so that I can invoke it via sp_send_dbmail. &amp;nbsp;It looks like I can do that by invoking:&lt;/p&gt;
&lt;p&gt;EXEC ssisreportingpack..sp_ssiscatalog &lt;/p&gt;
&lt;p&gt;	@execs_package_name = @package_name, &lt;/p&gt;
&lt;p&gt;	@execs_status_desc = 'failed', &lt;/p&gt;
&lt;p&gt;	@operation_type='execs' &lt;/p&gt;
&lt;p&gt;* Getting the full error message. &amp;nbsp;I can query message from catalog.event_messages where event_name = 'OnError', and I'm using the underlying queries from the SSMS SSIS Dashboard to get a ton of info, but since yours is going to improve and mine will probably get to a happy point (for me) and stay there, I'd rather use yours.&lt;/p&gt;
</description></item><item><title>A dacpac limitation – Deploy dacpac wizard does not understand SqlCmd variables</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/11/07/introducing-sp-ssiscatalog-v1-0-0-0.aspx#46160</link><pubDate>Tue, 13 Nov 2012 21:53:05 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46160</guid><dc:creator>SSIS Junkie</dc:creator><description>&lt;p&gt;Since the release of SQL Server 2012 I have become a big fan of using dacpacs for deploying SQL Server&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/07/introducing-sp-ssiscatalog-v1-0-0-0.aspx#46322</link><pubDate>Tue, 20 Nov 2012 21:42:09 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46322</guid><dc:creator>SSIS Junkie</dc:creator><description>&lt;p&gt;13 days ago I wrote a blog post entitled Introducing sp_ssiscatalog (v1.0.0.0) in which I first made&lt;/p&gt;
</description></item><item><title>re: Introducing sp_ssiscatalog (v1.0.0.0)</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/11/07/introducing-sp-ssiscatalog-v1-0-0-0.aspx#46323</link><pubDate>Tue, 20 Nov 2012 21:56:15 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46323</guid><dc:creator>jamiet</dc:creator><description>&lt;p&gt;mbourgon,&lt;/p&gt;
&lt;p&gt;Nice idea, and I really appreciate you taking the time to submit it - thanks.&lt;/p&gt;
&lt;p&gt;Let me clarify though - do you want to get an error message (if one exists) when querying for a list of executions using:&lt;/p&gt;
&lt;p&gt;EXEC [dbo].[sp_ssiscatalog] @operation_type='execs',@execs_status_desc='failed',@execs_package_name='Package.dtsx'&lt;/p&gt;
&lt;p&gt;I'm not quite sure how that would work. If there are multiple executions returned, which one should it return an error message for? Are you suggesting (for example) that there should be an extra column that returns (say) the first error in the execution?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jamie&lt;/p&gt;
</description></item><item><title>Documenting sp_ssiscatalog</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/11/07/introducing-sp-ssiscatalog-v1-0-0-0.aspx#46518</link><pubDate>Tue, 04 Dec 2012 23:19:31 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46518</guid><dc:creator>SSIS Junkie</dc:creator><description>&lt;p&gt;What is the best way to document an API ? Moreover, what is the best way to document a T-SQL API? Before&lt;/p&gt;
</description></item></channel></rss>