Included in SSIS PowerPack

SSIS PostgreSQL ExecuteSQL Task

Execute DDL and DML statements for PostgreSQL without needing any extra driver.

PostgreSQL Execute SQL Task executes DDL and DML statements for PostgreSQL without needing any extra driver. You can issue SQL commands such as SELECT, INSERT, DROP, COPY and CREATE.

The trial includes PostgreSQL ExecuteSQL Task and every other PowerPack component

PostgreSQL ExecuteSQL Task in SSDT
PostgreSQL ExecuteSQL Task in SSDT
Run multiple DDL statements in one PostgreSQL ExecuteSQL TaskExplore the UI →

Trusted by data teams worldwide

MicrosoftIBMOracleDell TechnologiesHPCiscoAT&TVerizonDHLFedExUPSWalmart

Also rated on Capterra★★★★★ , Trustpilot★★★★★ and BBBA+ — see why teams trust ZappySys

At a glance

What PostgreSQL ExecuteSQL Task can do

PostgreSQL Execute SQL Task can be used to execute DDL and DML statements for PostgreSQL without needing any extra driver. You can issue SQL commands such as SELECT, INSERT, DROP, COPY and CREATE.

No extra driver needed

Execute queries against PostgreSQL without an ODBC driver.

  • 100% managed code, so it works in 32-bit and 64-bit

Execute SQL on PostgreSQL guide

DDL & DML statements

Issue SQL commands such as SELECT, INSERT, DROP, COPY and CREATE.

  • Run multiple SQL statements in one task
  • Example: drop a table if it exists, then create it

Execute SQL on PostgreSQL guide

SQL from text or a variable

Type the SQL directly in the task, or load it at runtime from an SSIS variable.

  • SqlStatementSourceType: DirectValue or Variable
  • SqlStatementVariable holds the variable name

Component help

Results into variables

Store query results in SSIS variables.

  • ResultsetType: None, FullResultset or SingleValue
  • FullResultset is an ADO.net DataTable stored in an Object variable

Component help

Timeout & logging

Control command timeout and how much is logged.

  • Timeout in seconds (0 = no timeout)
  • LoggingMode and PrefixTimestamp

Component help

PostgreSQL connection

Connect with host, port, database, user name and password through the PostgreSQL Connection Manager.

  • Enable SSL
  • Add the connection directly from the task UI

Connection Manager help

Connection performance

Tune how the connection behaves while the package runs.

  • Connection pooling
  • RetainSameConnection keeps one connection open for multiple tasks
  • Separate command and connect timeouts

Connection Manager help

SQL Server 2012–2025 & ADF

Runs in your environment on SQL Server 2012–2025 and Azure-SSIS.

  • SQL Server 2025, 2022, 2019, 2017, 2016, 2014, 2012 (32/64-bit)
  • Azure Data Factory (SSIS IR)
  • Design packages in Visual Studio 2017, 2019, 2022, or 2026
  • Windows only (64-bit OS): Windows 7–11 or Windows Server 2012–2025

Compatibility and requirements

See all features
  • Execute DDL and DML statements for PostgreSQL without needing any extra driver
  • Issue SQL commands such as SELECT, INSERT, DROP, COPY and CREATE
  • Run multiple SQL statements in one task
  • Type the SQL directly or load it at runtime from an SSIS variable
  • Store a full result set (ADO.net DataTable) or a single value in an SSIS variable
  • Command timeout setting (0 = no timeout)
  • 100% managed code, compatible with 32-bit and 64-bit
  • SSL support on the PostgreSQL Connection Manager
  • Connection pooling and RetainSameConnection to share one open connection across tasks
  • Logging modes (Normal, Medium, Detailed, Debugging) with optional timestamp prefix
  • Support for SQL Server 2025, 2022, 2019, 2017, 2016, 2014, 2012 (32/64-bit) and Azure Data Factory

Runs in your environment ·

SQL Server 2012–2025

and Azure-SSIS · Read the FAQ

How it works

From the toolbox to your first run.

Key steps from the PostgreSQL ExecuteSQL Task page and help file, with the screens you will see in SSDT.

PostgreSQL ExecuteSQL Task editor

Double-click the task to open its editor. Pick an existing ZS-POSTGRESQL connection or add a new one directly from the task.

In the connection, enter the host name, database name, user name and password, then click Test Connection.

PostgreSQL ExecuteSQL Task editor

Inside the UI

Key settings, as they appear in SSDT.

Real screens from the PostgreSQL ExecuteSQL Task product page. Step through them, or open any shot at full size.

Drag and drop the PostgreSQL ExecuteSQL Task

In Visual Studio, drag the ZS PostgreSQL ExecuteSQL Task from the SSIS Toolbox onto the design surface.

Compatibility and requirements

Designed to stay inside your SSIS runtime.

  • SQL Server 2012 through 2025, 32-bit and 64-bit
  • Windows only, 64-bit OS required. SQL Server Express and Web editions do not include SSIS
  • Azure Data Factory SSIS Integration Runtime
  • Self-hosted: credentials and data stay in your environment (external API calls still reach that service)
  • Fully functional 30-day trial of SSIS PowerPack

FAQ

Questions teams ask before they drop PostgreSQL ExecuteSQL Task on the canvas.

What is PostgreSQL ExecuteSQL Task?

PostgreSQL Execute SQL Task executes DDL and DML statements for PostgreSQL without needing any extra driver. You can issue SQL commands such as SELECT, INSERT, DROP, COPY and CREATE.

What can PostgreSQL ExecuteSQL Task do?

It runs one or more SQL statements against PostgreSQL from the SSIS Control Flow through the ZappySys PostgreSQL Connection Manager, with no ODBC driver needed. The SQL can be typed directly or read from an SSIS variable, and results can be saved as a full result set (ADO.net DataTable in an Object variable) or a single value. It is 100% managed code, so it works in 32-bit and 64-bit.

Can the SQL be dynamic?

Yes. Set SqlStatementSourceType to Variable and put the variable name in SqlStatementVariable; the task runs whatever SQL the variable holds at runtime.

Which SQL Server versions can I run it on?

SQL Server 2025, 2022, 2019, 2017, 2016, 2014, and 2012 (32- and 64-bit), plus Azure Data Factory with an SSIS Integration Runtime (packages must target SQL Server 2017). See Compatibility and requirements.

Independent ratings

Trusted by data teams, recognized by the industry

See why teams trust ZappySys (opens in new tab)

What customers say

  • Customer story

    ZappySys has been a fantastic way to bring our small company into the world of APIs, automation, and systems integration by providing tools within an easy-to-use framework.

    Ben KingeryOxspring Paul
  • Customer story

    At Synchronous Customers, we need to connect various types of data quickly. The super handy ZappySys connectors and great documentation let us do it without writing a lot of code.

    Joel ConnerSynchronous Customers
  • Customer story

    I looked everywhere for a product that could integrate to a web portal backend API via JSON. After many attempts, ZappySys was the only solution that gave me all the options I needed in a quick & clean interface within SSIS.

    Maz DunicSave the Children Australia
  • Customer story

    We have worked with the ZappySys support team for over a year and have consistently found them extremely helpful — resourceful and creative in offering multiple solutions to our challenges.

    Senthil SekarPublicis Groupe
  • Trustpilot

    I’ve been using ZappySys for over 6 years — it makes development faster, and I introduced it to my current company.

    Anna JohnsonTrustpilot review
  • Trustpilot

    I’m integrating data from APIs into database tables with SSIS/ZappySys — very easy to use, fast, and highly efficient without writing complex code.

    Carolyn S.Trustpilot review
  • Customer quote

    I submitted a support request and had someone logged in and fixing things within 2 hours.

    Barry Wilson
  • Customer quote

    The REST source is very powerful — the only thing I found I could use after trying components from major vendors.

    Jes KirkupKTC
  • Customer quote

    Whenever we run into an obstacle, ZappySys has a solution for us. We are so glad that we chose ZappySys PowerPack.

    Kevin ChenBerricle

Start your free trial today

Install SSIS PowerPack and drag PostgreSQL ExecuteSQL Task onto the Control Flow.

Execute DDL and DML statements for PostgreSQL without needing any extra driver.

  • Control Flow Task in SSISPostgreSQL ExecuteSQL Task appears in the toolbox after you install PowerPack.
  • Fully functional 30-day trialSSIS PowerPack, running in your environment.
  • Live supportHelp during your trial and after purchase.

New purchases may be eligible for refund review within 30 days. See the refund policy.

Talk to an engineer before or during your trial.

1 / 8