<?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: Initialize SSIS Variables from a Database Table</title>
	<atom:link href="http://blog.boxedbits.com/archives/8/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.boxedbits.com/archives/8</link>
	<description>( ... more specifically about BI with Microsoft products )</description>
	<pubDate>Tue, 06 Jan 2009 00:25:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: PedroCGD</title>
		<link>http://blog.boxedbits.com/archives/8/comment-page-1#comment-2409</link>
		<dc:creator>PedroCGD</dc:creator>
		<pubDate>Tue, 06 Jan 2009 00:11:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedbits.com/archives/8#comment-2409</guid>
		<description>Dear Friend,
Good post and blog.
But tell me why you need all this using script, you you have SSIS Package Configurations? 
Or you can use only SQL Task to get the values to a database table and store in a SSIS variable.
Regards,
Pedro</description>
		<content:encoded><![CDATA[<p>Dear Friend,<br />
Good post and blog.<br />
But tell me why you need all this using script, you you have SSIS Package Configurations?<br />
Or you can use only SQL Task to get the values to a database table and store in a SSIS variable.<br />
Regards,<br />
Pedro</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom VdP</title>
		<link>http://blog.boxedbits.com/archives/8/comment-page-1#comment-1653</link>
		<dc:creator>Tom VdP</dc:creator>
		<pubDate>Fri, 15 Aug 2008 15:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedbits.com/archives/8#comment-1653</guid>
		<description>If you want to assign a value from the database table to an SSIS variable of, say, type Int32 then you will have to cast &lt;i&gt;de.Value&lt;/i&gt; in the code above to integer.  Otherwise you get an error: &lt;i&gt;Variables may not change type during execution. Variable types are strict, except for variables of type Object&lt;/i&gt;.</description>
		<content:encoded><![CDATA[<p>If you want to assign a value from the database table to an SSIS variable of, say, type Int32 then you will have to cast <i>de.Value</i> in the code above to integer.  Otherwise you get an error: <i>Variables may not change type during execution. Variable types are strict, except for variables of type Object</i>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: red</title>
		<link>http://blog.boxedbits.com/archives/8/comment-page-1#comment-1632</link>
		<dc:creator>red</dc:creator>
		<pubDate>Wed, 13 Aug 2008 19:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedbits.com/archives/8#comment-1632</guid>
		<description>Very nice. Just wondering what exactly you mean by "all the parameters are string types". Are you talking about the parameters in database table only or both in the table as well as the variables in SSIS package? Could the package variables be of different datatypes?</description>
		<content:encoded><![CDATA[<p>Very nice. Just wondering what exactly you mean by &#8220;all the parameters are string types&#8221;. Are you talking about the parameters in database table only or both in the table as well as the variables in SSIS package? Could the package variables be of different datatypes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom VdP</title>
		<link>http://blog.boxedbits.com/archives/8/comment-page-1#comment-1507</link>
		<dc:creator>Tom VdP</dc:creator>
		<pubDate>Wed, 06 Aug 2008 13:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedbits.com/archives/8#comment-1507</guid>
		<description>It is probably the check for the existence of the variable in the &lt;i&gt;While sqlResult.Read()&lt;/i&gt;-loop that returns false.  Variable names are case sensitive, so make sure the value of the ParameterName in the table matches the name of the SSIS parameter exactly.
If this does not help you will have to resort to adding debugging messageboxes.</description>
		<content:encoded><![CDATA[<p>It is probably the check for the existence of the variable in the <i>While sqlResult.Read()</i>-loop that returns false.  Variable names are case sensitive, so make sure the value of the ParameterName in the table matches the name of the SSIS parameter exactly.<br />
If this does not help you will have to resort to adding debugging messageboxes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://blog.boxedbits.com/archives/8/comment-page-1#comment-1506</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 06 Aug 2008 12:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedbits.com/archives/8#comment-1506</guid>
		<description>I have changed the name of the db connection in the script and when I run the script it executes successfully but it does not change the variables to the ones stored within the database (SQL Server 2005). The db schema is below.  I figure it is something small, but I have yet to pinpoint it. Let me know what additional information may be useful.  

[dbo].[SSISCubeAutomationVariables]( 
[OLAPdbName] [varchar] (100) NOT NULL, 
[Month] [varchar] (20) NULL, 
[Year] [varchar] (10) NULL, 
[ParameterName] [varchar] (100) NOT NULL, 
[ParameterValue] [varchar] (4000) NULL, 
[Description] [varchar] (4000) NULL )
ON [PRIMARY]</description>
		<content:encoded><![CDATA[<p>I have changed the name of the db connection in the script and when I run the script it executes successfully but it does not change the variables to the ones stored within the database (SQL Server 2005). The db schema is below.  I figure it is something small, but I have yet to pinpoint it. Let me know what additional information may be useful.  </p>
<p>[dbo].[SSISCubeAutomationVariables](<br />
[OLAPdbName] [varchar] (100) NOT NULL,<br />
[Month] [varchar] (20) NULL,<br />
[Year] [varchar] (10) NULL,<br />
[ParameterName] [varchar] (100) NOT NULL,<br />
[ParameterValue] [varchar] (4000) NULL,<br />
[Description] [varchar] (4000) NULL )<br />
ON [PRIMARY]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom VdP</title>
		<link>http://blog.boxedbits.com/archives/8/comment-page-1#comment-1487</link>
		<dc:creator>Tom VdP</dc:creator>
		<pubDate>Tue, 05 Aug 2008 20:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedbits.com/archives/8#comment-1487</guid>
		<description>Kevin, I cannot disclose the package in which I use this code.  But if you give some more details about the "issues" you are having I will be glad to help.</description>
		<content:encoded><![CDATA[<p>Kevin, I cannot disclose the package in which I use this code.  But if you give some more details about the &#8220;issues&#8221; you are having I will be glad to help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://blog.boxedbits.com/archives/8/comment-page-1#comment-1486</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 05 Aug 2008 18:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedbits.com/archives/8#comment-1486</guid>
		<description>I am having issues making this work. Can you post the SSIS package so that I can see what the issue is?</description>
		<content:encoded><![CDATA[<p>I am having issues making this work. Can you post the SSIS package so that I can see what the issue is?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prasannakumaran Sarasijanayanan</title>
		<link>http://blog.boxedbits.com/archives/8/comment-page-1#comment-405</link>
		<dc:creator>Prasannakumaran Sarasijanayanan</dc:creator>
		<pubDate>Thu, 05 Jun 2008 09:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedbits.com/archives/8#comment-405</guid>
		<description>Thanks,
Excellent post.</description>
		<content:encoded><![CDATA[<p>Thanks,<br />
Excellent post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Neeley</title>
		<link>http://blog.boxedbits.com/archives/8/comment-page-1#comment-224</link>
		<dc:creator>Dave Neeley</dc:creator>
		<pubDate>Thu, 15 May 2008 19:09:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedbits.com/archives/8#comment-224</guid>
		<description>Thanks for posting this, it's really nice!</description>
		<content:encoded><![CDATA[<p>Thanks for posting this, it&#8217;s really nice!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
