<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Analysis Services Command Job Step Failure</title>
	<atom:link href="http://www.straightpathsql.com/archives/2009/03/analysis-services-command-job-step-failure/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.straightpathsql.com/archives/2009/03/analysis-services-command-job-step-failure/</link>
	<description>Mike Walsh&#039;s Thoughts on SQL Server, Professional Development and Life</description>
	<lastBuildDate>Fri, 30 Jul 2010 18:02:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Mike Walsh</title>
		<link>http://www.straightpathsql.com/archives/2009/03/analysis-services-command-job-step-failure/comment-page-1/#comment-34</link>
		<dc:creator>Mike Walsh</dc:creator>
		<pubDate>Sun, 08 Mar 2009 01:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://straightpathsql.mikewalshonline.com/?p=30#comment-34</guid>
		<description>&lt;p&gt;Thanks, Tim. That was one of the workarounds I had also found on the forums. Appreciate the addition. This is probably the easiest to implement of all workarounds.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks, Tim. That was one of the workarounds I had also found on the forums. Appreciate the addition. This is probably the easiest to implement of all workarounds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Laqua</title>
		<link>http://www.straightpathsql.com/archives/2009/03/analysis-services-command-job-step-failure/comment-page-1/#comment-33</link>
		<dc:creator>Tim Laqua</dc:creator>
		<pubDate>Sat, 07 Mar 2009 19:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://straightpathsql.mikewalshonline.com/?p=30#comment-33</guid>
		<description>&lt;p&gt;Or, you can just insert a check step after each XMLA step containing T-SQL along these lines:&lt;/p&gt;&lt;p&gt;DECLARE @JobName VARCHAR(64)&lt;/p&gt;&lt;p&gt;SET @JobName = ‘Name Of Job This Step Belongs to’&lt;/p&gt;&lt;p&gt;DECLARE @Message VARCHAR(1024)&lt;/p&gt;&lt;p&gt;SELECT TOP 1 @Message = CAST([message] AS VARCHAR(1024))&lt;br/&gt;FROM msdb.dbo.sysjobhistory a&lt;br/&gt;INNER JOIN msdb.dbo.sysjobs b&lt;br/&gt;ON a.job_id = b.job_id AND b.[NAME] = @JobName&lt;br/&gt;ORDER BY run_date DESC, run_time DESC&lt;/p&gt;&lt;p&gt;IF @Message LIKE ‘%&lt;Exception %’&lt;br/&gt;RAISERROR (@Message, 17, 1)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Or, you can just insert a check step after each XMLA step containing T-SQL along these lines:</p>
<p>DECLARE @JobName VARCHAR(64)</p>
<p>SET @JobName = ‘Name Of Job This Step Belongs to’</p>
<p>DECLARE @Message VARCHAR(1024)</p>
<p>SELECT TOP 1 @Message = CAST([message] AS VARCHAR(1024))<br />FROM msdb.dbo.sysjobhistory a<br />INNER JOIN msdb.dbo.sysjobs b<br />ON a.job_id = b.job_id AND b.[NAME] = @JobName<br />ORDER BY run_date DESC, run_time DESC</p>
<p>IF @Message LIKE ‘%&lt;Exception %’<br />RAISERROR (@Message, 17, 1)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
