SSIS: OLEDB Destination dynamic SQL Table Name?

Asked By 200 points N/A Posted on -
qa-featured

Hi,

I would like to know how to setup the OLEDB Destination dynamic SQL Table name in SSIS. I have designed the Raw File Source Tasks which would pick up the source files dynamically. And I connected the Source Task to an OLEDB Destination Task. The OLEDB Destination tasks SQL Table name should be changed dynamically.

I have tried using variable name. But in the Connection Editor page, I can’t select the Table Name variable which was declared previously. Please let me know the solution for this issue.

Thanks in Advance.
Karthik.

SHARE
Best Answer by karthikeyan
Best Answer
Best Answer
Answered By 0 points N/A #125556

SSIS: OLEDB Destination dynamic SQL Table Name?

qa-featured

Hi Karthik,

For your information, you can choose the variable option from the Table Name list in the Editor Page of the OLEDB Destination tasks. If you are trying to create the SQL tables at run time, then you have to enable the “Delay Validation” option in the Properties page. Enabling the delay validation option would accept the table creation at run time.

Sometimes the editor page of the OLDEDB Destination task will not allow you for further steps until the table names have been selected. In this case, you have to create a dummy SQL table in the database and select that table name from the drop down list. This solution may solve your issue in SSIS.  

Thanks,
Karthikeyan.

Answered By 0 points N/A #125557

SSIS: OLEDB Destination dynamic SQL Table Name?

qa-featured

Hi Karthik,

If the previous solutions are not working, finally you can try the Bulk Insert task in the Data Flow Control. That is a perfect solution for this issue. You can use the Bulk Insert task in the For each loop container for the dynamic insertion of Source Data into the dynamic SQL table.

Thanks,
Karthikeyan.

Login/Register to Answer

Related Questions