Reputation: 1077
I can't seem to figure out how to execute a sql statement like for example truncate table against a postgresql db using SSIS. I am able to connect to the postgresql db from SSIS just fine.
Upvotes: 1
Views: 2042
Reputation: 320
Use Execute SQL Task and create an ADO.NET Connection instead of ODBC or OLE DB and create a connection for your PostgreSQL.
Upvotes: 1
Reputation: 1394
Just adding Toolbox Execute SQL Task, then edit Toolbox and in tab General fill in the following fields:
Connection Type: OLE DB
Connection: choose your postgresql connection
SQLStatement: insert your query
That's all. I hope this help you.
Upvotes: 2