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.
2 Answers
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.
1 Comment
Mark Wojciechowicz
One note on this answer, there is a pay-for OLEDB provider for postgres, but the out-of-the-box provider is ODBC. If you are using ODBC, it would be an ADO.NET connection type for the sql task
