//
you're reading...
Database, IT-Center, SQL Server

SSIS Foreach Loop Container using ADO.NET

Using Foreach Loop Container using ADO.NET

1. Select Rows Recordset using Execute Task
–  create sql statement
–  Setting resultset variable ( 1 varible save 1 dataset ) and fill result name value is “0”
In there User::rsMachine is dataset didn’t row value variable

2. Foreach Loop Container
– setting Enumator & ADO object source with dataset variable

– setting variable mapping for dataset field with order index

3. Read Recordset using Script Task Editor
– ReadOnlyvariable Field value is dataset variable

– Read recordset value like order in setting variable mapping in “FOREACH LOOP CONTAINER”

read field 0 = CType(Dts.Variables(“User::MachineType”).Value, String)

See Also :
– http://www.mojokertokab.go.id/mjk/sub/dinkes/index.php?page=articles_&no=47&sub=Awas%20Bayam%20Beracun
– http://www.sqlis.com/sqlis/post/The-Execute-SQL-Task.aspx
– http://dwbi1.wordpress.com/2010/07/29/ssis-looping-with-ado-enumerator/

About berbagisolusi

Berbagi merupakan sebuah bentuk simbol keikhlasan untuk membantu dan menolong, sedangkan solusi adalah cara menyelesaikan masalah. Setiap manusia pasti mengalami masalah, tetapi kita tidak perlu mengalami masalah yang sama jika orang lain pernah mengalami dan kita tahu hal tersebut.

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 9 other followers

March 2012
M T W T F S S
« Feb   Apr »
 1234
567891011
12131415161718
19202122232425
262728293031  

Archives

Web Statistic

Blog Stats

  • 149,580 hits
%d bloggers like this: