sql - loop row by row from an excel file map to variable -
i have 4 columns in excel file. need assign values each row corresponding 4 variables can replaced lated in query doing on server. question is: how that? far tried doing sql task in create table 4 columns (having same names in excel file) , task transfer content of excel recordset destination stores results variable. created foreach loop in having tasks. missing, how can this? thanks
edit
please find below screenshot project. overview.
in "execute sql task" there connection excel , has following statement
create table tempvariablemapping ( asofdate varchar(20), assump_set varchar(20), marketname varchar(20), portname varchar(20) );
then in transfer task (in recordset destination), i'm assigning variable name user::recordsetoutput global variable of type object.
in foreach loop i'm using foreach ado enumerator , pointing user::recordsetoutput variable find below variable mapping
those 4 variables in variable mapping in want pass values each row of excel file.
the sequence container , create temp table dummy. haven't figured out correct way. below that, works. sorry missunderstanding, hope enough picture. thank time , help
Comments
Post a Comment