Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

how to use parameter in For Each Loop task

$
0
0

Hello Everyone,

I am using Script component to write Excel data to Database.

Which is working Properly but for this i have to hardcode file name in EXCEL Connection String.

Dim cnAsNew OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Desktop\Test2.xls ;Extended Properties= Excel 8.0")

now i have multiple files in the folder i want to use for each loop component which will take my file one by one and then process that file in

Script component .

Can you tell me how to store file name in  variable in for each loop and then pass that variable in Script component so that i have not to hardcode file name.

Please provide link or soultion for it.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>