<?xml version="1.0" encoding="UTF-8"?><rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><copyright>All content (copyright) respective authors</copyright><description>thandaz's code bookmark tagged with dts</description><link>http://www.codaddict.com/thandaz/dts</link><title>thandaz's code bookmark tagged with dts</title><item><title>Stop DTS Package Execution Conditionally Without Failure</title><description>Dim fso, file1<br />
Dim pkg<br />
SET pkg = DTSGlobalVariables.Parent<br />
<br />
Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)<br />
<br />
IF (fso.FileExists(&quot;c:\abc.txt&quot;)) THEN<br />
	Msgbox &quot;File exist. Continue&quot;<br />
	pkg.Steps(&quot;DTSStep_DTSActiveScriptTask_2&quot;).DisableStep=False<br />
	<br />
	Set fso= Nothing<br />
	<br />
ELSE<br />
	Msgbox &quot;Stop&quot;<br />
	pkg.Steps(&quot;DTSStep_DTSActiveScriptTask_2&quot;).DisableStep=True <br />
END IF<br />
set pkg=nothing<br />
Main = DTSTaskExecResult_Success</description><link>http://www.codaddict.com/thandaz/SQL Server</link><dc:creator>thandaz</dc:creator><pubDate>Mon, 04 Jan 2010 11:32:21 GMT</pubDate></item></channel></rss>
