• Hi ,

    I have suggestion for this senario.

    You are not able to insert the record by using oldeb destination.

    Step:1 you rae creating a table by uisng execute sqltask.

    Step:2 then you use DT to extract data from xlm and insert the extract data into cretaed table in the sqltask.Here itself you face error.because when you try to map the destination table it wont be there.so your are not a\even run the package with out any error.

    My suggestion

    step:as you said create a table by using execute sql task

    step:2 use the data flow task and insert the extracted data into one record set

    Note:you have declare a variable with the data type of object.

    Step:3 Come to control flow and drag and drop the for each loop container and select the ADO.net enumerator.Inside the for each loop container drag and drop the execute sql task and write a insert query just pass the values through a varaible.

    Ex: Create table test1(column1 varchar(10)) ---Sql task

    I have taken a flat file connection manager and set the file path ..In that file i have only one data ...it is "HI", i want to insert the "Hi" into the table test1.

    drag the record set destination i have updated the variable which is having the data type of object.

    Then foreach loop inside for each loop[ i have sqltask. In that i have written a query as insert into test1 (column1) values (?).