SSIS OLEDB destination with SQL command

PoeHaH picture PoeHaH · Jun 17, 2013 · Viewed 19.4k times · Source

I have a simple SSIS package with a data flow task with ADO.NET source & destination:

enter image description here

Normally, I would just select 'table or view' on the OLEDB destination, but although the connection is correct it's not showing me any table names.

So: I have to use SQL command to insert rows in the OLE DB destination. That destination is a DB2 database.

My question: how can I write this sql statement to insert everything from the ANO NET source into the destination table? enter image description here

Answer

Maximus picture Maximus · Jun 17, 2013

In the SQL Command Text, Just write

SELECT * FROM TableName --Here tablename is the destination table name.

And go to the Mapping and map the appropriate columns if it is not already mapped.