SSIS OLEDB destination with SQL command

纵饮孤独 提交于 2019-12-23 08:12:18

问题


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

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?


回答1:


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.



来源:https://stackoverflow.com/questions/17144405/ssis-oledb-destination-with-sql-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!