﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Kristian Wedberg / Article Discussions / Article Discussions by Author  / SSIS - Code Reuse and Complex Control Flows / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 11:32:14 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SSIS - Code Reuse and Complex Control Flows</title><link>http://www.sqlservercentral.com/Forums/Topic208835-245-1.aspx</link><description>Sorry Kristian, I have data flows developed that execute the SQL in OLE DB Source objects.  That is where the Parameter is located.        Mitch</description><pubDate>Wed, 27 Feb 2008 12:47:50 GMT</pubDate><dc:creator>lucasm-630215</dc:creator></item><item><title>RE: SSIS - Code Reuse and Complex Control Flows</title><link>http://www.sqlservercentral.com/Forums/Topic208835-245-1.aspx</link><description>It's not clear from your post where you're running the select; in script task, in execute sql task, or in data flow?</description><pubDate>Wed, 27 Feb 2008 12:22:49 GMT</pubDate><dc:creator>Kristian Wedberg</dc:creator></item><item><title>RE: SSIS - Code Reuse and Complex Control Flows</title><link>http://www.sqlservercentral.com/Forums/Topic208835-245-1.aspx</link><description>I am attempting to use a for loop construct to pass a user variable into a script which will be used in the Select statement as a parameter.  Reading your discussion helps me understand the for loop, but I don't see how I could pass a variable.  Any thoughts or ideas?</description><pubDate>Tue, 26 Feb 2008 14:08:51 GMT</pubDate><dc:creator>lucasm-630215</dc:creator></item><item><title>RE: SSIS - Code Reuse and Complex Control Flows</title><link>http://www.sqlservercentral.com/Forums/Topic208835-245-1.aspx</link><description>&lt;P&gt;It IS a very good article and a long time in coming.  We've been able to stretch the DTS considerably with setting global variables.  Never did get looping figured out in SQL 2000 so our solution?  Cheat.&lt;/P&gt;&lt;P&gt;We had a stored procedure do the looping and then set the variables it needs through a temporary table, as below:&lt;/P&gt;&lt;P&gt; while ( @TName is not null ) begin  print 'TableName is ' + @TName&lt;/P&gt;&lt;P&gt;  exec master..xp_cmdshell 'dtsrun /S"ServerName" /E /N"ReUsableDTSName"'&lt;/P&gt;&lt;P&gt;  if @TName = @TNameLast break    set rowcount 1  select @TName = TableName  from LastUpdated  where TableName not in (   select TableName    from  DenverStats )  order by TableName  set rowcount 0&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;It wasn't the most elegant solution, but it worked for getting the rowcounts for every table in the database of a remote Oracle schema.  It takes a while to learn but global variables have saved me a lot of copy/paste.  Thanks for bringing it up.&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;</description><pubDate>Tue, 06 Sep 2005 11:23:00 GMT</pubDate><dc:creator>AndreQ1</dc:creator></item><item><title>RE: SSIS - Code Reuse and Complex Control Flows</title><link>http://www.sqlservercentral.com/Forums/Topic208835-245-1.aspx</link><description>Thanks guys, glad you liked it!    Kristian</description><pubDate>Tue, 06 Sep 2005 08:44:00 GMT</pubDate><dc:creator>Kristian Wedberg</dc:creator></item><item><title>RE: SSIS - Code Reuse and Complex Control Flows</title><link>http://www.sqlservercentral.com/Forums/Topic208835-245-1.aspx</link><description>&lt;P&gt;Nice one Kristian. Reusability is key to the SSIS architecture. There's lots of possibilities in v1 with much more to come in v2 I'm *sure*!&lt;/P&gt;&lt;P&gt;-Jamie&lt;/P&gt;</description><pubDate>Tue, 06 Sep 2005 02:38:00 GMT</pubDate><dc:creator>Jamie Thomson</dc:creator></item><item><title>RE: SSIS - Code Reuse and Complex Control Flows</title><link>http://www.sqlservercentral.com/Forums/Topic208835-245-1.aspx</link><description>&lt;P&gt;Nice article!&lt;/P&gt;&lt;P&gt;Universe.Earth.Software.Microsoft.SQLServer.IS.KirkHaselden&lt;/P&gt;</description><pubDate>Tue, 06 Sep 2005 02:36:00 GMT</pubDate><dc:creator>Kirk Haselden</dc:creator></item><item><title>SSIS - Code Reuse and Complex Control Flows</title><link>http://www.sqlservercentral.com/Forums/Topic208835-245-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF="http://www.sqlservercentral.com/columnists/kwedberg/ssiscodereuseandcomplexcontrolflows.asp"&gt;http://www.sqlservercentral.com/columnists/kwedberg/ssiscodereuseandcomplexcontrolflows.asp&lt;/A&gt;</description><pubDate>Tue, 09 Aug 2005 11:52:00 GMT</pubDate><dc:creator>Kristian Wedberg</dc:creator></item></channel></rss>