c# - SSIS Getting Execute Sql Task result set object -


i have execute sql task item , getting multiple rows of data stored proc.

declared variable objshipment under variable table , assigned under result set following info:

result set:    full result set result name:   0 variable name: user::objshipment 

i have written script task objshipment variable assigned readonly wondering how retrieve data within it?

the stored proc returns multiple rows id, itemid, datecreated.., how retrieve them if interested in itemid? , since returns multiple rows there more 1 itemid.

i new ssis appreciated!

so speaking use object variables within ssis package enumerator of each container.

  1. create each loop container.
  2. set enumerator "for each ado enumerator".
  3. set source variable user::objshipment.
  4. assign each column object own variable in variable mappings tab.
  5. within each loop container, use variables whatever want: insert them database, lookups , audits, etc.

if going use script task, need

datatable dt = new datatable(); oledbdataadapter oleda = new oledbdataadapter(); oleda.fill(dt, dts.variables["user::objshipment"].value); 

and use dt old datatable.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -