<?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: Programming For Loop Container</title>
	<atom:link href="http://www.sqllion.com/2009/06/programming-for-loop-container/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sqllion.com/2009/06/programming-for-loop-container/</link>
	<description>Welcome to the Database Jungle</description>
	<lastBuildDate>Fri, 03 Feb 2012 09:18:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: julia</title>
		<link>http://www.sqllion.com/2009/06/programming-for-loop-container/comment-page-1/#comment-1079</link>
		<dc:creator>julia</dc:creator>
		<pubDate>Tue, 15 Nov 2011 20:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqllion.com/?p=479#comment-1079</guid>
		<description>may be good idea, 
but bad example steps,
I never know what code put what place-task,

Statement to create table:
?
for Statement to INSERT record
?
it&#039;s messy, confusion, bad,
&#039;This Execute SQL Task will insert one record &#039;
whitch task? I have to guess
&#039;Add the below References before developing the code.&#039;
where and what file to put these code
????</description>
		<content:encoded><![CDATA[<p>may be good idea,<br />
but bad example steps,<br />
I never know what code put what place-task,</p>
<p>Statement to create table:<br />
?<br />
for Statement to INSERT record<br />
?<br />
it&#8217;s messy, confusion, bad,<br />
&#8216;This Execute SQL Task will insert one record &#8216;<br />
whitch task? I have to guess<br />
&#8216;Add the below References before developing the code.&#8217;<br />
where and what file to put these code<br />
????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MSBI # 22 - SSIS # 9 - Control Flow Tasks # 4 - For Loop Container Task - Vishal Pawar&#039;s Blog</title>
		<link>http://www.sqllion.com/2009/06/programming-for-loop-container/comment-page-1/#comment-961</link>
		<dc:creator>MSBI # 22 - SSIS # 9 - Control Flow Tasks # 4 - For Loop Container Task - Vishal Pawar&#039;s Blog</dc:creator>
		<pubDate>Wed, 17 Aug 2011 05:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqllion.com/?p=479#comment-961</guid>
		<description>[...] Programming For Loop Container &#124; SQL Lion [...]</description>
		<content:encoded><![CDATA[<p>[...] Programming For Loop Container | SQL Lion [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MSBI # 22 &#8211; SSIS # 9 &#8211; Control Flow Tasks # 4 &#8211; For Loop Container Task &#171; (B)usiness (I)ntelligence Mentalist</title>
		<link>http://www.sqllion.com/2009/06/programming-for-loop-container/comment-page-1/#comment-960</link>
		<dc:creator>MSBI # 22 &#8211; SSIS # 9 &#8211; Control Flow Tasks # 4 &#8211; For Loop Container Task &#171; (B)usiness (I)ntelligence Mentalist</dc:creator>
		<pubDate>Wed, 17 Aug 2011 05:28:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqllion.com/?p=479#comment-960</guid>
		<description>[...] Programming For Loop Container &#124; SQL Lion [...]</description>
		<content:encoded><![CDATA[<p>[...] Programming For Loop Container | SQL Lion [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun Mallick</title>
		<link>http://www.sqllion.com/2009/06/programming-for-loop-container/comment-page-1/#comment-539</link>
		<dc:creator>Arun Mallick</dc:creator>
		<pubDate>Wed, 28 Jul 2010 07:05:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqllion.com/?p=479#comment-539</guid>
		<description>Hi Rohidas,
as you can see above, i am using a &quot;Forloop Container&quot; to insert data into the employee table. 

In the statement, 
INSERT INTO [dbo].[Employee_Dim]
([emp_name]
,[emp_id]
,[emp_DOB])
VALUES
(‘EmpName’ + Cast(? as varchar)
,101
,getdate())

In the statement, instead of inserting same name for each iteration (in EmployeeName column), i concatenate the value of &quot;@Counter&quot; with the employee name, and &quot;@Counter&quot; value is passed by a parameter in the above &quot;Execute SQL Task&quot; and hence &quot;?&quot; is the placeholder for that argument.

Let me know, in case your doubt is not clear.
Thanks,
Arun</description>
		<content:encoded><![CDATA[<p>Hi Rohidas,<br />
as you can see above, i am using a &#8220;Forloop Container&#8221; to insert data into the employee table. </p>
<p>In the statement,<br />
INSERT INTO [dbo].[Employee_Dim]<br />
([emp_name]<br />
,[emp_id]<br />
,[emp_DOB])<br />
VALUES<br />
(‘EmpName’ + Cast(? as varchar)<br />
,101<br />
,getdate())</p>
<p>In the statement, instead of inserting same name for each iteration (in EmployeeName column), i concatenate the value of &#8220;@Counter&#8221; with the employee name, and &#8220;@Counter&#8221; value is passed by a parameter in the above &#8220;Execute SQL Task&#8221; and hence &#8220;?&#8221; is the placeholder for that argument.</p>
<p>Let me know, in case your doubt is not clear.<br />
Thanks,<br />
Arun</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohidas</title>
		<link>http://www.sqllion.com/2009/06/programming-for-loop-container/comment-page-1/#comment-538</link>
		<dc:creator>Rohidas</dc:creator>
		<pubDate>Wed, 28 Jul 2010 06:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqllion.com/?p=479#comment-538</guid>
		<description>VALUES
(‘EmpName’ + Cast(? as varchar)
,101
,getdate())

Please explain ? sign  or compete above statement</description>
		<content:encoded><![CDATA[<p>VALUES<br />
(‘EmpName’ + Cast(? as varchar)<br />
,101<br />
,getdate())</p>
<p>Please explain ? sign  or compete above statement</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohidas</title>
		<link>http://www.sqllion.com/2009/06/programming-for-loop-container/comment-page-1/#comment-537</link>
		<dc:creator>Rohidas</dc:creator>
		<pubDate>Wed, 28 Jul 2010 06:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqllion.com/?p=479#comment-537</guid>
		<description>VALUES
(‘EmpName’ + Cast(? as varchar)
,101
,getdate())


Please explain ? sign or which int in this place or compete above statement</description>
		<content:encoded><![CDATA[<p>VALUES<br />
(‘EmpName’ + Cast(? as varchar)<br />
,101<br />
,getdate())</p>
<p>Please explain ? sign or which int in this place or compete above statement</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun Mallick</title>
		<link>http://www.sqllion.com/2009/06/programming-for-loop-container/comment-page-1/#comment-287</link>
		<dc:creator>Arun Mallick</dc:creator>
		<pubDate>Sat, 30 Jan 2010 10:18:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqllion.com/?p=479#comment-287</guid>
		<description>Well,
As in the above statement, I am trying to insert employee’s names for each iteration of the loop, so just to distinguish each employee name, I am concatenating constant value “EmpName” with the counter which is of integer data type and is coming by the parameter “User::Counter”, as it is impossible to concatenate one string value to an integer value, hence I am type casting integer to string before concatenation. Here, “?” is the placeholder for the integer value.
Thanks,</description>
		<content:encoded><![CDATA[<p>Well,<br />
As in the above statement, I am trying to insert employee’s names for each iteration of the loop, so just to distinguish each employee name, I am concatenating constant value “EmpName” with the counter which is of integer data type and is coming by the parameter “User::Counter”, as it is impossible to concatenate one string value to an integer value, hence I am type casting integer to string before concatenation. Here, “?” is the placeholder for the integer value.<br />
Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jayamanjunath</title>
		<link>http://www.sqllion.com/2009/06/programming-for-loop-container/comment-page-1/#comment-286</link>
		<dc:creator>jayamanjunath</dc:creator>
		<pubDate>Sat, 30 Jan 2010 09:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqllion.com/?p=479#comment-286</guid>
		<description>Cast(? as varchar)

the above said statement is not clear, can u able to expain it clearly,

which will be helpfull for me

jayamanjunath ks 
+919035342730</description>
		<content:encoded><![CDATA[<p>Cast(? as varchar)</p>
<p>the above said statement is not clear, can u able to expain it clearly,</p>
<p>which will be helpfull for me</p>
<p>jayamanjunath ks<br />
+919035342730</p>
]]></content:encoded>
	</item>
</channel>
</rss>

