<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PostgreSQL Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/postgresql/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/postgresql/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Mon, 30 Sep 2019 14:38:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>PostgreSQL Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/postgresql/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Load data into PostgreSQL &#8211; Upsert using SSIS (Bulk Update, Insert, Delete)</title>
		<link>https://zappysys.com/blog/postgresql-upsert-using-ssis-destination-update-insert-delete/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Fri, 06 Sep 2019 07:08:07 +0000</pubDate>
				<category><![CDATA[SSIS PostgreSql Connection]]></category>
		<category><![CDATA[SSIS Upsert Destination]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[upsert]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=7894</guid>

					<description><![CDATA[<p>Introduction In our previous blog we saw How to perform Upsert (Update or Insert) for SQL Server Table. In this post we will look at specific example on How to Load data into PostgreSQL &#8211; Upsert using SSIS Upsert Destination (Insert, Update, Delete), along with few other topics such as how to create target table using [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/postgresql-upsert-using-ssis-destination-update-insert-delete/">Load data into PostgreSQL &#8211; Upsert using SSIS (Bulk Update, Insert, Delete)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><span id="Introduction">Introduction</span></h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/Access-to-PostgreSQL.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="wp-image-7898 size-thumbnail alignleft" src="https://zappysys.com/blog/wp-content/uploads/2019/09/Access-to-PostgreSQL-150x150.png" alt="Access to PostgreSQL" width="150" height="150" /></a>In our previous blog we saw <a href="https://zappysys.com/blog/data-migration-access-sql-server/" target="_blank" rel="noopener">How to perform Upsert (Update or Insert) for SQL Server Table</a>. In this post we will look at specific example on <b>How to Load data into PostgreSQL &#8211; Upsert using SSIS Upsert Destination (Insert, Update, Delete)</b>, along with few other topics such as how to create target table using Upsert Destination, how to read data from Ms Access Table and <strong>Merge into PostgreSQL using SSIS</strong>.</p>
<p>We will go through the steps to read data from Access and Load into PostgreSQL &#8211; Upsert in SSIS.</p>
<p>In nutshell, this post will focus on how to read access table data in SSIS.</p>
<p>So let’s get started.</p>
<h2><span id="Requirements">Requirements</span></h2>
<ol>
<li>First, you will need to have SSIS installed</li>
<li>Secondly, make sure to have SSDT</li>
<li>Thirdly, do not forget to install ZappySys <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack</a></li>
<li>Finally, Make sure that Microsoft Access installed.</li>
</ol>
<h2>Read MS Access data and Upsert into PostgreSQL table</h2>
<p>Let´s start with an example. In this article we will see Data migration from Access to PostgreSQL.</p>
<ol>
<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.
<div id="attachment_7934" style="width: 470px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7934" class="size-full wp-image-7934" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" alt="Drag and Drop SSIS Data Flow Task from SSIS Toolbox" width="460" height="155" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png 460w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task-300x101.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a><p id="caption-attachment-7934" class="wp-caption-text">Drag and Drop : SSIS Data Flow Task from SSIS Toolbox</p></div></li>
<li>Furthermore, drag and drop the OLE DB Source.
<div id="attachment_7289" style="width: 515px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/06/oledb-source-drag-and-drop.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7289" class="wp-image-7289 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/06/oledb-source-drag-and-drop.png" alt="OLE DB Source - Drag and Drop" width="505" height="190" srcset="https://zappysys.com/blog/wp-content/uploads/2019/06/oledb-source-drag-and-drop.png 505w, https://zappysys.com/blog/wp-content/uploads/2019/06/oledb-source-drag-and-drop-300x113.png 300w" sizes="(max-width: 505px) 100vw, 505px" /></a><p id="caption-attachment-7289" class="wp-caption-text">OLE DB Source &#8211; Drag and Drop</p></div></li>
<li>Double click on OLE DB Source for configure it and click on New Connection and configure connection as below to connect access database and click on OK.
<div id="attachment_7851" style="width: 722px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-ole-db-access-connection.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7851" class="wp-image-7851 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-ole-db-access-connection.png" alt="OLE DB : Access Connection" width="712" height="618" srcset="https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-ole-db-access-connection.png 712w, https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-ole-db-access-connection-300x260.png 300w" sizes="(max-width: 712px) 100vw, 712px" /></a><p id="caption-attachment-7851" class="wp-caption-text">OLE DB : Access Connection</p></div></li>
<li>Now in OLE DB Source Select the mode as Table or View and select Preview to view the access table data.
<div id="attachment_7852" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-ole-db-source-preview.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7852" class="wp-image-7852 size-medium_large" src="https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-ole-db-source-preview-768x472.png" alt="OLE DB Source Preview" width="720" height="443" srcset="https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-ole-db-source-preview-768x472.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-ole-db-source-preview-300x184.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-ole-db-source-preview-1024x629.png 1024w, https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-ole-db-source-preview.png 1165w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-7852" class="wp-caption-text">OLE DB Source Preview</p></div></li>
<li>Now drag and drop Upsert Destination (Insert, Update, Delete) and create connection with PostgreSQL Database.
<div id="attachment_7912" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-upsert-destination-postgresql.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7912" class="wp-image-7912 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-upsert-destination-postgresql.png" alt="Setup SSIS Upsert Destination for PostgreSQL data load (Bulk Update, Insert, Delete)" width="720" height="766" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-upsert-destination-postgresql.png 720w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-upsert-destination-postgresql-282x300.png 282w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-7912" class="wp-caption-text">Setup SSIS Upsert Destination for PostgreSQL data load (Bulk Update, Insert, Delete)</p></div></li>
<li>Now select Action as Sync and check all the checkboxes Insert, Update and Delete from target if not found in source. Select the table and Map all the columns and select the Key field(s) and click on OK.<a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-upsert-destination-select-table-and-key.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" width="768" height="572" class="wp-image-7901 size-medium_large" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-upsert-destination-select-table-and-key-768x572.png" alt="&quot;&lt;yoastmark" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-upsert-destination-select-table-and-key-768x572.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-upsert-destination-select-table-and-key-300x224.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-upsert-destination-select-table-and-key.png 950w" sizes="(max-width: 768px) 100vw, 768px" /></a></li>
<li>That&#8217;s it we are ready to migrate MS access table data into PostgreSQL Table. Execute the package and it will migrate the data.<a href="https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-oledb-source-and-upsert-destination.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" width="410" height="225" class="wp-image-7860 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-oledb-source-and-upsert-destination.png" alt="&quot;&lt;yoastmark" srcset="https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-oledb-source-and-upsert-destination.png 410w, https://zappysys.com/blog/wp-content/uploads/2019/08/ssis-oledb-source-and-upsert-destination-300x165.png 300w" sizes="(max-width: 410px) 100vw, 410px" /></a></li>
</ol>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>In this article, we show how to read MS Access table data and migrate the data in PostgreSQL table using SSIS Upsert Destination. We show how to do connect access MS Access using OLE DB Source. Also, we show how to write Sync Insert, Update and Delete in target if not found in Source Using <a href="https://zappysys.com/products/ssis-powerpack/ssis-upsert-destination/" target="_blank" rel="noopener">ZS Upsert Destination</a>. If you liked this article and you want to try, you can download the <a href="https://zappysys.com/products/ssis-powerpack/">SSIS PowerPack from here (includes 70+ Components)</a>.</p>
<h2><span id="References">References</span></h2>
<ul>
<li><a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">ZappySys SSIS installer.</a></li>
<li><strong>Help File: </strong><a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=ssis-upsert-destination.htm" target="_blank" rel="noopener">Upsert Destination</a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/postgresql-upsert-using-ssis-destination-update-insert-delete/">Load data into PostgreSQL &#8211; Upsert using SSIS (Bulk Update, Insert, Delete)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Execute SQL query against PostgreSQL in SSIS</title>
		<link>https://zappysys.com/blog/execute-sql-query-against-postgresql-in-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Thu, 08 Aug 2019 14:20:27 +0000</pubDate>
				<category><![CDATA[SSIS PostgreSQL ExecuteSQL Task]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[ExecuteSQL]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[Task]]></category>
		<category><![CDATA[ZappySys]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=7654</guid>

					<description><![CDATA[<p>Introduction ZappySys provides high-performance drag and drop connectors for PostgreSQL Integration. In this post you will see how to Execute SQL query against PostgreSQL in SSIS, in various SQL commands such as SELECT, INSERT, DROP, COPY, CREATE, etc using PostgreSQL Execute SQL Task can be used to execute DDL and DML statements for PostgreSQL without needing any [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/execute-sql-query-against-postgresql-in-ssis/">Execute SQL query against PostgreSQL in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/08/postgresql-logo.png"><img loading="lazy" decoding="async" class="size-thumbnail wp-image-7656 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2019/08/postgresql-logo-150x150.png" alt="" width="150" height="150" /></a></p>
<p>ZappySys provides high-performance drag and drop connectors for PostgreSQL Integration. In this post you will see how to Execute SQL query against PostgreSQL in SSIS, in various SQL commands such as SELECT, INSERT, DROP, COPY, CREATE, etc using PostgreSQL Execute SQL Task can be used to execute DDL and DML statements for PostgreSQL without needing any extra driver. PostgreSQL is a powerful, open-source relational database with a strong reputation for reliability, feature robustness, and performance.</p>
<p>In nutshell, this post will focus on how to Execute SQL query against PostgreSQL in just a few clicks.</p>
<h2><span id="Prerequisite">Prerequisite</span></h2>
<ol>
<li>First, you will need to have SSIS installed</li>
<li>Secondly, make sure to have SSDT</li>
<li>Thirdly, You have obtained PostgreSQL Credential.</li>
<li>Finally, do not forget to install <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></li>
</ol>
<h2>Component Mentioned in this article</h2>
<div class="su-table su-table-alternate">
<table style="height: 44px;width: 307px">
<tbody>
<tr style="height: 22px">
<td style="height: 22px;width: 1px"><a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/postgresql-executesql-task/ssis-postgresql-executesql-task.png"><img loading="lazy" decoding="async" class="alignnone wp-image-3074" src="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/postgresql-executesql-task/ssis-postgresql-executesql-task.png" alt="" width="40" height="40" /></a></td>
<td style="height: 22px;width: 247px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-executesql-task/" target="_blank" rel="noopener">PostgreSQL Execute SQL Task</a></td>
</tr>
</tbody>
</table>
</div>
<h2><span id="What_is_PostgreSQL">What is PostgreSQL?</span></h2>
<p>PostgreSQL is a powerful, open source object-relational database system that uses and extends the SQL language combined with many features that safely store and scale the most complicated data workloads. The origins of PostgreSQL date back to 1986 as part of the <a href="https://www.postgresql.org/docs/current/history.html" target="_blank" rel="noopener">POSTGRES</a> project at the University of California at Berkeley and has more than 30 years of active development on the core platform.</p>
<p>PostgreSQL has earned a strong reputation for its proven architecture, reliability, data integrity, robust feature set, extensibility, and the dedication of the open source community behind the software to consistently deliver performant and innovative solutions. PostgreSQL runs on <a href="https://www.postgresql.org/download/" target="_blank" rel="noopener">all major operating systems</a>, has been <a href="https://en.wikipedia.org/wiki/ACID" target="_blank" rel="noopener">ACID</a>-compliant since 2001, and has powerful add-ons such as the popular <a href="https://postgis.net/" target="_blank" rel="noopener">PostGIS</a> geospatial database extender. It is no surprise that PostgreSQL has become the open source relational database of choice for many people and organisations.</p>
<p><a href="https://www.postgresql.org/docs/current/tutorial.html" target="_blank" rel="noopener">Getting started</a> with using PostgreSQL has never been easier – pick a project you want to build, and let PostgreSQL safely and robustly store your data.</p>
<h3><span id="Download_and_Install_PostgreSQL">Download and Install PostgreSQL</span></h3>
<p>Please go to below download link and download the Windows version Binary package and install it and follow the steps from the installer.</p>
<p><a href="https://www.postgresql.org/download/" target="_blank" rel="noopener">https://www.postgresql.org/download/</a></p>
<div id="attachment_6774" style="width: 530px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-download-e1555505700480.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6774" class="wp-image-6774 size-post-thumbnail" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-download-e1555505700480-520x380.png" alt="Download PostgreSQL" width="520" height="380" /></a><p id="caption-attachment-6774" class="wp-caption-text">Download PostgreSQL</p></div>
<h3><span id="Create_PostgreSQL_Database_and_Table">Create a PostgreSQL Database</span></h3>
<ol>
<li>To do this, go to Start Menu and search for pgAdmin and we will first open the pgAdmin Panel.
<div id="attachment_6776" style="width: 434px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-open-pgadmin.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6776" class="wp-image-6776 size-vantage-slide" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-open-pgadmin-424x480.png" alt="Open pgAdmin from Start Menu" width="424" height="480" /></a><p id="caption-attachment-6776" class="wp-caption-text">Open pgAdmin from Start Menu</p></div></li>
<li>It will open the pgAdmin Panel in the system default browser. Select Server and Right-click on Databases to create a database.
<div id="attachment_6777" style="width: 555px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-select-createdatabase.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6777" class="wp-image-6777 size-post-thumbnail" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-select-createdatabase-545x380.png" alt="PostgreSQL Create Database" width="545" height="380" /></a><p id="caption-attachment-6777" class="wp-caption-text">PostgreSQL Create Database</p></div></li>
<li>Now, Enter the Database name and click on Save to create it.
<div id="attachment_6778" style="width: 727px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-create-database.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6778" class="wp-image-6778 size-post-thumbnail" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-create-database-717x380.png" alt="Create PostgreSQL Database" width="717" height="380" /></a><p id="caption-attachment-6778" class="wp-caption-text">Create a PostgreSQL Database</p></div></li>
</ol>
<h2>Getting Started</h2>
<p>In order to start, we will show several examples. ZappySys includes an SSIS <a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-executesql-task/" target="_blank" rel="noopener">PostgreSQL ExecuteSQL Task</a> that will help you how to Create and Drop table by Execute SQL query against PostgreSQL in SSIS. ZS PostgreSQL ExecuteSQL Task support execute queries against PostgreSQL without ODBC driver, load query at runtime from variable, file or Direct value, 100% Managed code means its 32bit and 64bit compatible, you can issue COPY, UNLOAD commands very easily, Support for SQL Server 2017, 2016, 2014, 2012, 2008 (32/64 bit) and <a href="https://zappysys.com/blog/tag/postgresql/" target="_blank" rel="noopener">Click here</a> to see articles related to PostgreSQL.</p>
<p>You can connect to your PostgreSQL database by entering your PostgreSQL credentials.</p>
<h2>Execute SQL query against PostgreSQL in SSIS</h2>
<p>Let&#8217;s start with an example. In this tutorial, we will learn how to Create and Drop table using SQL query against PostgreSQL server using ZS PostgreSQL ExecuteSQL Task.</p>
<ol>
<li>In order to connect to the PostgreSQL Database from SSIS, you will need Credentials. Ask your SysAdmin or responsible person to provide that to you.</li>
<li>Once you finished the above steps, Open Visual Studio and Create New SSIS Package Project.</li>
<li>In Visual Studio, drag and drop the ZS PostgreSQL ExecuteSql Task in the design surface.
<div style="width: 550px" class="wp-caption aligncenter"><a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/postgreSQL-executeSql-task/ssis-drag-drop-executesql-task-postgresql.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" src="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/postgreSQL-executeSql-task/ssis-drag-drop-executesql-task-postgresql.png" alt="SSIS ZS PostgreSQL ExecuteSQL Task - Drag and Drop" width="540" height="103" /></a><p class="wp-caption-text">SSIS ZS PostgreSQL ExecuteSQL Task &#8211; Drag and Drop</p></div></li>
<li>We need a PostgreSQL Database connection. Click <a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/ssis-postgresql-connection-manager.htm" target="_blank" rel="noopener">here</a> to create a connection.</li>
<li>Now, double click on ZS PostgreSQL ExecuteSql Task to configure it.</li>
<li>In the PostgreSQL ExecuteSql Task, add the following SQL code to DROP a table if it exists and CREATE a table named pg_equipment in the SQL Statement section.<br />
You can replace the table name from the following code.<br />
<pre class="crayon-plain-tag">DROP TABLE IF EXISTS playground_equip;
CREATE TABLE pg_equipment (
	equip_id serial PRIMARY KEY,
	type varchar (50) NOT NULL,
	color varchar (25) NOT NULL,
	location varchar(25) check (location in ('north', 'south', 'west', 'east', 'northeast', 'southeast', 'southwest', 'northwest')),
	install_date date
);</pre>
<div style="width: 778px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" src="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/postgreSQL-executeSql-task/ssis-sql-statement-postgresql.png" alt="SSIS ZS PostgreSQL ExecuteSQL Task - Configure" width="768" height="600" /><p class="wp-caption-text">SSIS ZS PostgreSQL ExecuteSQL Task &#8211; Configure</p></div></li>
<li>In the above step, you can Select Variable as Sql Source Type.</li>
<li>Click OK to save ZS PostgreSQL ExecuteSql Task UI settings.</li>
<li>Finally, Right Click on Task and Select Execute Task to run it.</li>
</ol>
<h2>Conclusion</h2>
<p>After all, In this blog, we learned Execute SQL query against PostgreSQL in SSIS using ZS PostgreSQL ExecuteSQL Task. You can <a href="https://zappysys.com/products/ssis-powerpack/">download SSIS PowerPack here</a> to try many other scenarios not discussed in this blog along with 70+ other components.</p>
<h2>References</h2>
<p>Finally, you can use the following links for more information:</p>
<ul>
<li><a href="https://www.postgresql.org/about/" target="_blank" rel="noopener">About PostgreSQL</a></li>
<li><a href="https://www.postgresql.org/docs/" target="_blank" rel="noopener">PostgreSQL Documentation</a></li>
<li><a href="https://www.tutorialspoint.com/postgresql" target="_blank" rel="noopener">PostgreSQL Query</a></li>
<li><strong>Help File: </strong><a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/ssis-postgresql-executesql-task.htm" target="_blank" rel="noopener">PostgreSQL ExecuteSQL Task</a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/execute-sql-query-against-postgresql-in-ssis/">Execute SQL query against PostgreSQL in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Load data into PostgreSQL from Excel file using SSIS</title>
		<link>https://zappysys.com/blog/ssis-load-data-postgresql-from-excel-file/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Mon, 22 Apr 2019 12:25:36 +0000</pubDate>
				<category><![CDATA[SSIS Excel Source]]></category>
		<category><![CDATA[SSIS PostgreSql Connection]]></category>
		<category><![CDATA[SSIS PostgreSQL Destination]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=6815</guid>

					<description><![CDATA[<p>Introduction In this post, we will learn How to Load data into PostgreSQL from Excel file using SSIS PostgreSQL Destination.  We will use SSIS PowerPack to connect PostgreSQL. This article also covers how to read Excel file in SSIS. SSIS PostgreSQL Destination can be used to perform bulk insert in PostgreSQL Table from any data source using SSIS. [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/ssis-load-data-postgresql-from-excel-file/">Load data into PostgreSQL from Excel file using SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-Destination.png"><img loading="lazy" decoding="async" class="size-full wp-image-6816 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-Destination.png" alt="PostgreSql Destination" width="100" height="100" /></a><br />
In this post, we will learn How to <strong>Load data into PostgreSQL from Excel file using SSIS PostgreSQL Destination</strong>.  We will use <a href="https://zappysys.com/products/ssis-powerpack/">SSIS PowerPack</a> to connect PostgreSQL. This article also covers how to read Excel file in SSIS.</p>
<p><a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-destination/" target="_blank" rel="noopener">SSIS PostgreSQL Destination</a> can be used to perform bulk insert in PostgreSQL Table from any data source using SSIS.</p>
<p>In nutshell, this post will focus on how to Read Excel file and load data into PostgreSQL Table.</p>
<h2>Prerequisite</h2>
<ol>
<li>First, you will need to have SSIS installed</li>
<li>Secondly, make sure to have SSDT</li>
<li>Thirdly, You have obtained PostgreSQL Credential.</li>
<li>Finally, do not forget to install ZappySys <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack</a></li>
</ol>
<p><strong>Components Mentioned in this article</strong><br />
<div class="su-table su-table-alternate">
<table style="width: 407px">
<tbody>
<tr style="height: 30px">
<td style="width: 33.2955px;height: 40px"><img loading="lazy" decoding="async" src="https://i0.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/postgreSQL-destination/ssis-PostgreSql-Destination.png?w=100&amp;ssl=1" alt="SSIS Amazon S3 XML File Source" width="32" height="32" /></td>
<td style="width: 357.841px;height: 40px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-destination/" target="_blank" rel="noopener">PostgreSQL Destination</a></td>
</tr>
<tr style="height: 30px">
<td style="width: 33.2955px;height: 40px"><img loading="lazy" decoding="async" src="https://i0.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/excel-source/ssis-excel-file-source.png?w=720&amp;ssl=1" alt="SSIS Amazon S3 CSV File Source" width="32" height="32" /></td>
<td style="width: 357.841px;height: 40px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-excel-file-source/" target="_blank" rel="noopener">Excel Source</a></td>
</tr>
</tbody>
</table>
</div>
<h2><span id="What_is_PostgreSQL">What is PostgreSQL?</span></h2>
<p>PostgreSQL is a powerful, open source object-relational database system that uses and extends the SQL language combined with many features that safely store and scale the most complicated data workloads. The origins of PostgreSQL date back to 1986 as part of the <a href="https://www.postgresql.org/docs/current/history.html" target="_blank" rel="noopener">POSTGRES</a> project at the University of California at Berkeley and has more than 30 years of active development on the core platform.</p>
<p>PostgreSQL has earned a strong reputation for its proven architecture, reliability, data integrity, robust feature set, extensibility, and the dedication of the open source community behind the software to consistently deliver performant and innovative solutions. PostgreSQL runs on <a href="https://www.postgresql.org/download/" target="_blank" rel="noopener">all major operating systems</a>, has been <a href="https://en.wikipedia.org/wiki/ACID" target="_blank" rel="noopener">ACID</a>-compliant since 2001, and has powerful add-ons such as the popular <a href="https://postgis.net/" target="_blank" rel="noopener">PostGIS</a> geospatial database extender. It is no surprise that PostgreSQL has become the open source relational database of choice for many people and organisations.</p>
<p><a href="https://www.postgresql.org/docs/current/tutorial.html" target="_blank" rel="noopener">Getting started</a> with using PostgreSQL has never been easier – pick a project you want to build, and let PostgreSQL safely and robustly store your data.</p>
<h2>Getting Started</h2>
<p>In order to start, we will show several examples of how to connect the excel file and read data from the excel worksheet. ZappySys includes an <a href="https://zappysys.com/products/ssis-powerpack/ssis-excel-file-source/" target="_blank" rel="noopener">SSIS Excel File Source Connector</a> that will help you in reading excel sheet data from Excel File. Here we are showing you is, How to Load Excel File data in PostgreSQL using <a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-destination/" target="_blank" rel="noopener">SSIS PostgreSQL Destination</a>.</p>
<h2>Getting Started &#8211; Read Excel File in SSIS</h2>
<p>Let´s start with an example. Let&#8217;s use our <a href="https://zappysys.com/products/ssis-powerpack/ssis-excel-file-source/" target="_blank" rel="noopener">SSIS Excel File Source Connector</a>, we will read data from Microsoft Excel File.</p>
<ol>
<li>First of all, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.<a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7934" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" alt="Drag and Drop SSIS Data Flow Task from SSIS Toolbox" width="460" height="155" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png 460w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task-300x101.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a></li>
<li>Now Drag and Drop ZS Excel Source from the SSIS Toolbox.<a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-add-excel-source-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" width="667" height="369" class="wp-image-6657 size-full aligncenter" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-add-excel-source-task.png" alt="&quot;&lt;yoastmark" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-add-excel-source-task.png 667w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-add-excel-source-task-300x166.png 300w" sizes="(max-width: 667px) 100vw, 667px" /></a></li>
<li>Let&#8217;s Double Click on Excel Source for edit and select New Connection and click on New button.
<div id="attachment_6658" style="width: 725px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-edit-excel-file-source.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6658" class="wp-image-6658 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-edit-excel-file-source.png" alt="ssis-edit-excel-file-source" width="715" height="692" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-edit-excel-file-source.png 715w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-edit-excel-file-source-300x290.png 300w" sizes="(max-width: 715px) 100vw, 715px" /></a><p id="caption-attachment-6658" class="wp-caption-text">Edit Excel Source</p></div></li>
<li>Now select the excel file path in and test connection in opened excel connection manager window and click on OK.
<div id="attachment_6616" style="width: 763px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/Select-Excel-File-For-Connection.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6616" class="wp-image-6616 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/Select-Excel-File-For-Connection.png" alt="Select Excel File For Connection" width="753" height="568" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/Select-Excel-File-For-Connection.png 753w, https://zappysys.com/blog/wp-content/uploads/2019/03/Select-Excel-File-For-Connection-300x226.png 300w" sizes="(max-width: 753px) 100vw, 753px" /></a><p id="caption-attachment-6616" class="wp-caption-text">Select Excel File For Connection</p></div></li>
<li>Let&#8217;s read the Excel Workbook data using table mode and select sheet to read data from that excel sheet.
<div id="attachment_6659" style="width: 808px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-table.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6659" class="wp-image-6659 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-table.png" alt="ssis-excel-file-source-access-mode-table" width="798" height="669" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-table.png 798w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-table-300x252.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-table-768x644.png 768w" sizes="(max-width: 798px) 100vw, 798px" /></a><p id="caption-attachment-6659" class="wp-caption-text">Load Excel Sheet Data using Access mode as a Table</p></div></li>
<li> We can also read Excel Workbook using SQL Query mode and filter the data.
<div id="attachment_6660" style="width: 765px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-query.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6660" class="wp-image-6660 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-query.png" alt="Read from Excel File using SQL Query Mode" width="755" height="664" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-query.png 755w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-query-300x264.png 300w" sizes="(max-width: 755px) 100vw, 755px" /></a><p id="caption-attachment-6660" class="wp-caption-text">Read from Excel File using SQL Query Mode</p></div></li>
<li>You can do various other things also in the query mode, find our various example here to read Excel Workbook using SQL Query mode.
<div id="attachment_6661" style="width: 577px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-query-example.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6661" class="wp-image-6661 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-query-example.png" alt="Read from Excel File using SQL Query Mode Examples" width="567" height="435" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-query-example.png 567w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-excel-file-source-access-mode-query-example-300x230.png 300w" sizes="(max-width: 567px) 100vw, 567px" /></a><p id="caption-attachment-6661" class="wp-caption-text">Read from Excel File using SQL Query Mode Examples</p></div>
<p>&nbsp;</li>
<li> That&#8217;s it we are ready to load excel file data to PostgreSQL.</li>
</ol>
<h2>Load Excel File data into PostgreSQL</h2>
<p>Now let&#8217;s look at how to load data into target like PostgreSQL database Table.</p>
<ol>
<li>First of all, let&#8217;s create the PostgreSQL Database Connection From Connection Manager.</li>
<li>Right click in connection Window and select New Connection.
<div id="attachment_4382" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/07/ssis-connection-manager-create-new-connection-e1531164541889.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4382" class="size-medium_large wp-image-4382" src="https://zappysys.com/blog/wp-content/uploads/2018/07/ssis-connection-manager-create-new-connection-768x462.png" alt="Connection Manager Window: Create New Connection" width="720" height="433" /></a><p id="caption-attachment-4382" class="wp-caption-text">Connection Manager Window: Create New Connection</p></div></li>
<li>Select the ZS-POSTGRESQL Connection type from the Connection Manager Window.
<div id="attachment_6820" style="width: 532px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-Select-PostgreSQL-connection.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6820" class="size-full wp-image-6820" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-Select-PostgreSQL-connection.png" alt="Select ZS-PostgreSQL Connection" width="522" height="507" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-Select-PostgreSQL-connection.png 522w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-Select-PostgreSQL-connection-300x291.png 300w" sizes="(max-width: 522px) 100vw, 522px" /></a><p id="caption-attachment-6820" class="wp-caption-text">Select ZS-PostgreSQL Connection</p></div></li>
<li>Let’s configure the connection for PostgreSQL Database and Test the Connection.
<div id="attachment_6821" style="width: 576px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-connection.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6821" class="size-full wp-image-6821" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-connection.png" alt="Configure PostgreSQL Connection" width="566" height="579" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-connection.png 566w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-connection-293x300.png 293w" sizes="(max-width: 566px) 100vw, 566px" /></a><p id="caption-attachment-6821" class="wp-caption-text">Configure PostgreSQL Connection</p></div></li>
<li>Now lets&#8217; Drag and Drop PostgreSQL Destination from SSIS Toolbox Inside the Data Flow.
<div id="attachment_6823" style="width: 722px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-Destination.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6823" class="size-full wp-image-6823" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-Destination.png" alt="" width="712" height="144" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-Destination.png 712w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-Destination-300x61.png 300w" sizes="(max-width: 712px) 100vw, 712px" /></a><p id="caption-attachment-6823" class="wp-caption-text">Add PostgreSQL Destination</p></div></li>
<li>Connect our Source component to PostgreSQL Destination.
<div id="attachment_6824" style="width: 268px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-excel-source-to-PostgreSQL-Destination.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6824" class="size-full wp-image-6824" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-excel-source-to-PostgreSQL-Destination.png" alt="Connect Source Component to PostgreSQL Destination" width="258" height="242" /></a><p id="caption-attachment-6824" class="wp-caption-text">Connect Source Component to PostgreSQL Destination</p></div></li>
<li>Double click PostgreSQL Destination to configure it. And Select the PostgreSQL Connection.
<div id="attachment_6826" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-select-connection-PostgreSql-Destination.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6826" class="size-medium_large wp-image-6826" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-select-connection-PostgreSql-Destination-768x699.png" alt="And Select the PostgreSQL Connection" width="720" height="655" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-select-connection-PostgreSql-Destination-768x699.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-select-connection-PostgreSql-Destination-300x273.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-select-connection-PostgreSql-Destination.png 785w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-6826" class="wp-caption-text">Select the PostgreSQL Connection</p></div></li>
<li>Furthermore, go to Component Properties Tab and Select the PostgreSQL Table to Load Excel File data into it.
<div id="attachment_6827" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-select-table-PostgreSQL-Destination.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6827" class="size-medium_large wp-image-6827" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-select-table-PostgreSQL-Destination-768x742.png" alt="Select The PostgreSQL Table" width="720" height="696" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-select-table-PostgreSQL-Destination-768x742.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-select-table-PostgreSQL-Destination-300x290.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-select-table-PostgreSQL-Destination.png 777w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-6827" class="wp-caption-text">Select The PostgreSQL Table</p></div></li>
<li>Finally, let&#8217;s map the columns from the Column Mappings Tab.
<div id="attachment_6829" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-Destination-column-mappings.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6829" class="size-medium_large wp-image-6829" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-Destination-column-mappings-768x699.png" alt="PostgreSql Destination : Column Mappings" width="720" height="655" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-Destination-column-mappings-768x699.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-Destination-column-mappings-300x273.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-Destination-column-mappings.png 785w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-6829" class="wp-caption-text">PostgreSql Destination : Column Mappings</p></div></li>
<li>That&#8217;s it we are ready to go. Finally execute the package and it will insert the excel file data into the PostgreSQL Table.</li>
</ol>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>Above all, in this blog, we learned how to Load data into PostgreSQL from Excel file using SSIS PostgreSQL Destination using SSIS Pack. Therefore we used <a href="https://zappysys.com/products/ssis-powerpack/ssis-excel-file-source/" target="_blank" rel="noopener">Excel File Source Connector</a> to read the Excel file and load data into PostgreSQL using <a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-destination/" target="_blank" rel="noopener">SSIS PostgreSQL Destination</a>. You can <a href="https://zappysys.com/products/ssis-powerpack/">download SSIS PowerPack here</a> to try many other scenarios not discussed in this blog along with 70+ other components.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information:</p>
<ul>
<li><a href="https://www.postgresql.org/about/" target="_blank" rel="noopener">About PostgreSQL</a></li>
<li><a href="https://www.postgresql.org/docs/" target="_blank" rel="noopener">PostgreSQL Documentation</a></li>
<li>Help File : <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=ssis-postgresql-destination.htm" target="_blank" rel="noopener">PostgreSQL Destination</a></li>
<li>Help File: <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=ssis-excel-source.htm" target="_blank" rel="noopener">Excel Source</a></li>
</ul>
<p>&nbsp;</p>
<p>The post <a href="https://zappysys.com/blog/ssis-load-data-postgresql-from-excel-file/">Load data into PostgreSQL from Excel file using SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Export PostgreSQL Table Data to SQL Server in SSIS</title>
		<link>https://zappysys.com/blog/export-postgresql-table-data-sql-server-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Mon, 22 Apr 2019 08:49:34 +0000</pubDate>
				<category><![CDATA[SSIS PostgreSql Connection]]></category>
		<category><![CDATA[SSIS PostgreSQL Source]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=6810</guid>

					<description><![CDATA[<p>ZappySys provides high performance drag and drop connectors for PostgreSQL Integration. In this post you will see how to Export PostgreSQL Table Data to SQL Server Table using SSIS PostgreSQL Source. PostgreSQL Source supports SQL language to query PostgreSQL data. PostgreSQL is a powerful, open source relational database with strong reputation for reliability, feature robustness, and performance. [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/export-postgresql-table-data-sql-server-ssis/">Export PostgreSQL Table Data to SQL Server in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-Source.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignleft wp-image-6771 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-Source.png" alt="ssis-PostgreSql-Source" width="100" height="100" /></a>ZappySys provides high performance drag and drop connectors for PostgreSQL Integration. In this post you will see how to Export PostgreSQL Table Data to SQL Server Table using <a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-source/" target="_blank" rel="noopener">SSIS PostgreSQL Source</a>. PostgreSQL Source supports SQL language to query PostgreSQL data. PostgreSQL is a powerful, open source relational database with strong reputation for reliability, feature robustness, and performance.</p>
<p>In nutshell, this post will focus on how to read PostgreSQL Table Data and write into SQL Server table in few clicks.</p>
<h2><span id="Prerequisite">Prerequisite</span></h2>
<ol>
<li>First, you will need to have SSIS installed</li>
<li>Secondly, make sure to have SSDT</li>
<li>Thirdly, You have obtained PostgreSQL Credential.</li>
<li>Finally, do not forget to install <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></li>
</ol>
<p><strong>Components Mentioned in this article</strong><br />
<div class="su-table su-table-alternate">
<table style="width: 390px">
<tbody>
<tr style="height: 40px">
<td style="width: 33px;height: 40px"><img loading="lazy" decoding="async" src="https://i1.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/postgresql-source/ssis-postgresql-source.png" alt="SSIS Amazon S3 CSV File Source" width="32" height="32" /></td>
<td style="width: 357px;height: 40px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-source/" target="_blank" rel="noopener">SSIS PostgreSQL Source</a></td>
</tr>
</tbody>
</table>
</div>
<h2>What is PostgreSQL?</h2>
<p>PostgreSQL is a powerful, open source object-relational database system that uses and extends the SQL language combined with many features that safely store and scale the most complicated data workloads. The origins of PostgreSQL date back to 1986 as part of the <a href="https://www.postgresql.org/docs/current/history.html" target="_blank" rel="noopener">POSTGRES</a> project at the University of California at Berkeley and has more than 30 years of active development on the core platform.</p>
<p>PostgreSQL has earned a strong reputation for its proven architecture, reliability, data integrity, robust feature set, extensibility, and the dedication of the open source community behind the software to consistently deliver performant and innovative solutions. PostgreSQL runs on <a href="https://www.postgresql.org/download/" target="_blank" rel="noopener">all major operating systems</a>, has been <a href="https://en.wikipedia.org/wiki/ACID" target="_blank" rel="noopener">ACID</a>-compliant since 2001, and has powerful add-ons such as the popular <a href="https://postgis.net/" target="_blank" rel="noopener">PostGIS</a> geospatial database extender. It is no surprise that PostgreSQL has become the open source relational database of choice for many people and organisations.</p>
<p><a href="https://www.postgresql.org/docs/current/tutorial.html" target="_blank" rel="noopener">Getting started</a> with using PostgreSQL has never been easier &#8211; pick a project you want to build, and let PostgreSQL safely and robustly store your data.</p>
<h2>Download and Install PostgreSQL</h2>
<p>Please go to below download link and download the Windows version Binary package and install it and follow the steps from the installer.</p>
<p><a href="https://www.postgresql.org/download/" target="_blank" rel="noopener">https://www.postgresql.org/download/</a></p>
<div id="attachment_6774" style="width: 530px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-download.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6774" class="wp-image-6774 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-download-e1555505700480.png" alt="ssis-PostgreSql-download" width="520" height="706" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-download-e1555505700480.png 520w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-download-e1555505700480-221x300.png 221w" sizes="(max-width: 520px) 100vw, 520px" /></a><p id="caption-attachment-6774" class="wp-caption-text">PostgreSQL Download</p></div>
<h2>Create PostgreSQL Database and Table</h2>
<ol>
<li>To do this, we will first open the pgAdmin Panel.
<div id="attachment_6776" style="width: 434px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-open-pgadmin.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6776" class="wp-image-6776 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-open-pgadmin.png" alt="ssis-PostgreSql-open-pgadmin" width="424" height="680" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-open-pgadmin.png 424w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-open-pgadmin-187x300.png 187w" sizes="(max-width: 424px) 100vw, 424px" /></a><p id="caption-attachment-6776" class="wp-caption-text">Open PostgreSQL pgAdmin Panel</p></div></li>
<li>It will open the pgAdmin Panel in the browser. Select Server and Right click on Databases to create database.
<div id="attachment_6777" style="width: 555px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-select-createdatabase.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6777" class="wp-image-6777 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-select-createdatabase.png" alt="PostgreSql Select Create Database" width="545" height="484" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-select-createdatabase.png 545w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-select-createdatabase-300x266.png 300w" sizes="(max-width: 545px) 100vw, 545px" /></a><p id="caption-attachment-6777" class="wp-caption-text">PostgreSQL Select Create Database</p></div></li>
<li>Enter the Database name and click on Save to create it.
<div id="attachment_6778" style="width: 727px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-create-database.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6778" class="wp-image-6778 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-create-database.png" alt="ssis-PostgreSql-create-database" width="717" height="583" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-create-database.png 717w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-create-database-300x244.png 300w" sizes="(max-width: 717px) 100vw, 717px" /></a><p id="caption-attachment-6778" class="wp-caption-text">Create PostgreSQL Database</p></div></li>
<li>Now select the created database under it expand Schemas and right click on Tables and click on create Table.
<div id="attachment_6780" style="width: 575px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-create-table.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6780" class="wp-image-6780 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-create-table.png" alt="ssis-PostgreSQL-select-create-table" width="565" height="846" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-create-table.png 565w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-create-table-200x300.png 200w" sizes="(max-width: 565px) 100vw, 565px" /></a><p id="caption-attachment-6780" class="wp-caption-text">PostgreSQL Select Create Table</p></div></li>
<li>Now enter the table name and go to columns tab.
<div id="attachment_6782" style="width: 531px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-name.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6782" class="wp-image-6782 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-name.png" alt="ssis-PostgreSQL-add-table-name" width="521" height="472" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-name.png 521w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-name-300x272.png 300w" sizes="(max-width: 521px) 100vw, 521px" /></a><p id="caption-attachment-6782" class="wp-caption-text">PostgreSQL Enter Table Name</p></div></li>
<li>Add the columns by clicking add button and give the desire column name and select the datatype for the same.
<div id="attachment_6783" style="width: 622px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-columns.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6783" class="wp-image-6783 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-columns.png" alt="ssis-PostgreSQL-add-table-columns" width="612" height="500" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-columns.png 612w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-columns-300x245.png 300w" sizes="(max-width: 612px) 100vw, 612px" /></a><p id="caption-attachment-6783" class="wp-caption-text">PostgreSQL Add Table Columns</p></div></li>
<li>Now, let&#8217;s insert some data using Query Editor.
<div id="attachment_6790" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-insert-data-in-table.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6790" class="size-medium_large wp-image-6790" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-insert-data-in-table-768x712.png" alt="ssis-PostgreSQL-insert-data-in-table" width="720" height="668" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-insert-data-in-table-768x712.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-insert-data-in-table-300x278.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-insert-data-in-table.png 843w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-6790" class="wp-caption-text">PostgreSQL Insert Data in Table</p></div></li>
<li>That&#8217;s it, now let&#8217;s move forward to read the data from this table using <a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-source/" target="_blank" rel="noopener">SSIS PostgreSQL Source</a> in the next the section.
<div id="attachment_6792" style="width: 351px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-query-data.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6792" class="size-full wp-image-6792" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-query-data.png" alt="ssis-PostgreSQL-select-query-data" width="341" height="426" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-query-data.png 341w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-query-data-240x300.png 240w" sizes="(max-width: 341px) 100vw, 341px" /></a><p id="caption-attachment-6792" class="wp-caption-text">PostgreSQL Select Query Data</p></div></li>
</ol>
<h2><span id="Getting_Started">Getting Started</span></h2>
<p>In order to start, we will show several examples. ZappySys includes an <a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-source/" target="_blank" rel="noopener">SSIS PostgreSQL Source</a> that will help you extract large amount of data from a PostgreSQL Database. PostgreSQL Source supports Multiple modes (i.e. Table or Query) to read data from PostgreSQL Database and many more operations. Here we are showing you is, How to read data from PostgreSQL collection.</p>
<p>You can connect to your PostgreSQL database by entering your PostgreSQL credentials.</p>
<h2>Configure PostgreSQL Source to read data from the table</h2>
<p>Let´s start with an example. In this SSIS PostgreSQL Source Task example, we will load the PostgreSQL table data to SQL Server.</p>
<ol>
<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.
<div id="attachment_7934" style="width: 470px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7934" class="size-full wp-image-7934" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" alt="Drag and Drop SSIS Data Flow Task from SSIS Toolbox" width="460" height="155" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png 460w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task-300x101.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a><p id="caption-attachment-7934" class="wp-caption-text">Drag and Drop : Data Flow Task from SSIS Toolbox</p></div></li>
<li>Drag and Drop PostgreSQL Source Task from the SSIS Toolbox and double click on it to edit it.
<div id="attachment_6795" style="width: 618px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-source.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6795" class="size-full wp-image-6795" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-source.png" alt="ssis-drag-drop-PostgreSQL-source" width="608" height="321" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-source.png 608w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-source-300x158.png 300w" sizes="(max-width: 608px) 100vw, 608px" /></a><p id="caption-attachment-6795" class="wp-caption-text">PostgreSQL Source</p></div></li>
<li>Let&#8217;s create a connection for PostgreSQL Database.
<div id="attachment_6796" style="width: 669px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-create-connection.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6796" class="size-full wp-image-6796" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-create-connection.png" alt="ssis-PostgreSQL-create-connection" width="659" height="746" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-create-connection.png 659w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-create-connection-265x300.png 265w" sizes="(max-width: 659px) 100vw, 659px" /></a><p id="caption-attachment-6796" class="wp-caption-text">Create PostgreSQL Database Connection</p></div></li>
<li>Let&#8217;s select the Table mode and select the table and click on preview.
<div id="attachment_6798" style="width: 658px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-table.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6798" class="size-full wp-image-6798" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-table.png" alt="ssis-PostgreSQL-preview-table" width="648" height="622" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-table.png 648w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-table-300x288.png 300w" sizes="(max-width: 648px) 100vw, 648px" /></a><p id="caption-attachment-6798" class="wp-caption-text">PostgreSQL Table Preview</p></div></li>
<li>You can also use the query mode to filter the data and do more operation using query. You can find our several Examples also by clicking on &lt;&lt;View Examples&gt;&gt;.
<div id="attachment_6797" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-query.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6797" class="size-medium_large wp-image-6797" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-query-768x529.png" alt="ssis-PostgreSQL-preview-query" width="720" height="496" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-query-768x529.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-query-300x207.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-query.png 857w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-6797" class="wp-caption-text">PostgreSQL Query Preview</p></div></li>
<li>That&#8217;s it we are ready to load PostgreSQL Table data to SQL Server.</li>
</ol>
<h2>Load PostgreSQL Table data into SQL Server</h2>
<div class="content_block" id="custom_post_widget-5617"><p>ZappySys SSIS PowerPack makes it easy to load data from various sources such as REST, SOAP, JSON, XML, CSV or from other source into SQL Server, or PostgreSQL, or Amazon Redshift, or other  targets. The <strong>Upsert Destination</strong> component allows you to automatically insert new records and update existing ones based on key columns. Below are the detailed steps to configure it.</p>
<h3>Step 1: Add Upsert Destination to Data Flow</h3>
<ol>
<li>Drag and drop the <strong>Upsert Destination</strong> component from the SSIS Toolbox.</li>
<li>Connect your source component (e.g., JSON / REST / Other Source) to the Upsert Destination.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png" /></a>
<p class="wp-caption-text">SSIS - Data Flow - Drang and Drop Upsert Destination Component</p>
</div>
<h3>Step 2: Configure Target Connection</h3>
<ol>
<li>Double-click the <strong>Upsert Destination</strong> component to open the configuration window.</li>
<li>Under <strong>Connection</strong>, select an existing target connection or click <strong>NEW</strong> to create a new connection.
<ul>
<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.</li>
</ul>
</li>
</ol>
<h3>Step 3: Select or Create Target Table</h3>
<ol>
<li>In the <strong>Target Table</strong> dropdown, select the table where you want to load data.</li>
<li>Optionally, click <strong>NEW</strong> to create a new table based on the source columns.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png" /></a>
<p class="wp-caption-text">Configure SSIS Upsert Destination Connection - Loading data (REST / SOAP / JSON / XML /CSV) into SQL Server or other target using SSIS</p>
</div>
<h3>Step 4: Map Columns</h3>
<ol>
<li>Go to the <strong>Mappings</strong> tab.</li>
<li>Click <strong>Auto Map</strong> to map source columns to target columns by name.</li>
<li>Ensure you <strong>check the Primary key column(s)</strong> that will determine whether a record is inserted or updated.</li>
<li>You can manually adjust the mappings if necessary.</li>
</ol>
 <div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination - Columns Mappings</p>
</div>
<h3>Step 5: Save Settings</h3>
<ul>
<li>Click <strong>OK</strong> to save the Upsert Destination configuration.</li>
</ul>
<h3>Step 6: Optional: Add Logging or Analysis</h3>
<ul>
<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.</li>
</ul>
<h3>Step 7: Execute the Package</h3>
<ul>
<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.</li>
</ul>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination Execution</p>
</div></div>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>Above all, in this blog, we learned how to Read data from PostgreSQL in SSIS. We used <a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-source/" target="_blank" rel="noopener">SSIS PostgreSQL Source</a> to read the data from PostgreSQL Table and load data into SQL Server Table. You can <a href="https://zappysys.com/products/ssis-powerpack/">download SSIS PowerPack here</a> to try many other scenarios not discussed in this blog along with 70+ other components.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information:</p>
<ul>
<li><a href="https://www.postgresql.org/about/" target="_blank" rel="noopener">About PostgreSQL</a></li>
<li><a href="https://www.postgresql.org/docs/" target="_blank" rel="noopener">PostgreSQL Documentation</a></li>
<li><a href="https://www.tutorialspoint.com/postgresql/postgresql_select_query.htm" target="_blank" rel="noopener">PostgreSQL – SELECT Query</a></li>
<li>Help File : <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=ssis-postgresql-source.htm" target="_blank" rel="noopener">PostgreSQL Source</a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/export-postgresql-table-data-sql-server-ssis/">Export PostgreSQL Table Data to SQL Server in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Load PostgreSQL Table Data to CSV File in SSIS</title>
		<link>https://zappysys.com/blog/ssis-load-postgresql-table-data-csv-file/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Sat, 13 Apr 2019 11:15:16 +0000</pubDate>
				<category><![CDATA[SSIS CSV File Destination]]></category>
		<category><![CDATA[SSIS PostgreSql Connection]]></category>
		<category><![CDATA[SSIS PostgreSQL Source]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=6767</guid>

					<description><![CDATA[<p>Introduction ZappySys provides high performance drag and drop connectors for PostgreSQL Integration. In this post you will see how to Load PostgreSQL Table Data to CSV File using SSIS PostgreSQL Source. PostgreSQL Source supports SQL language to query PostgreSQL data. PostgreSQL is a powerful, open source relational database with strong reputation for reliability, feature robustness, and performance. In [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/ssis-load-postgresql-table-data-csv-file/">Load PostgreSQL Table Data to CSV File in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-Source.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignleft wp-image-6771 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-Source.png" alt="ssis-PostgreSql-Source" width="100" height="100" /></a>ZappySys provides high performance drag and drop connectors for PostgreSQL Integration. In this post you will see how to Load PostgreSQL Table Data to CSV File using <a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-source/" target="_blank" rel="noopener">SSIS PostgreSQL Source</a>. PostgreSQL Source supports SQL language to query PostgreSQL data. PostgreSQL is a powerful, open source relational database with strong reputation for reliability, feature robustness, and performance.</p>
<p>In nutshell, this post will focus on how to Load PostgreSQL Table Data and write into CSV File using <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=trash-destination.htm" target="_blank" rel="noopener">Trash Destination</a> in few clicks. You can also use the <a href="https://zappysys.com/products/ssis-powerpack/ssis-csv-file-destination/" target="_blank" rel="noopener">CSV Destination</a> instead of Trash destination if you wants more option like compressed file gzip (*.gz) or zip, wants to splitting the file by row count of file size and more.</p>
<h2><span id="Prerequisite">Prerequisite</span></h2>
<ol>
<li>First, you will need to have SSIS installed</li>
<li>Secondly, make sure to have SSDT</li>
<li>Thirdly, You have obtained PostgreSQL Credential.</li>
<li>Finally, do not forget to install <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></li>
</ol>
<p><strong>Components Mentioned in this article</strong><br />
<div class="su-table su-table-alternate">
<table style="width: 390px;height: 160px">
<tbody>
<tr style="height: 40px">
<td style="width: 33px;height: 40px"><img loading="lazy" decoding="async" src="https://i1.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/postgresql-source/ssis-postgresql-source.png" alt="SSIS Amazon S3 CSV File Source" width="32" height="32" /></td>
<td style="width: 357px;height: 40px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-source/" target="_blank" rel="noopener">SSIS PostgreSQL Source</a></td>
</tr>
<tr style="height: 40px">
<td style="width: 33px;height: 40px"><img loading="lazy" decoding="async" src="https://i0.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/csv-destination/ssis-csv-file-destination.png?w=720&amp;ssl=1" alt="SSIS Amazon S3 CSV File Destination" width="32" height="32" /></td>
<td style="width: 357px;height: 40px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-csv-file-destination/" target="_blank" rel="noopener">CSV Destination</a></td>
</tr>
<tr style="height: 40px">
<td style="width: 33px;height: 40px"><img loading="lazy" decoding="async" src="https://i2.wp.com/zappysys.com/images/ssis-powerpack/SSIS-Trash-Destination-Adapter.png?w=720&amp;ssl=1" alt="SSIS Amazon S3 XML File Source" width="32" height="32" /></td>
<td style="width: 357px"><a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/trash-destination.htm" target="_blank" rel="noopener">Trash Destination</a></td>
</tr>
</tbody>
</table>
</div>
<h2>What is PostgreSQL?</h2>
<p>PostgreSQL is a powerful, open source object-relational database system that uses and extends the SQL language combined with many features that safely store and scale the most complicated data workloads. The origins of PostgreSQL date back to 1986 as part of the <a href="https://www.postgresql.org/docs/current/history.html" target="_blank" rel="noopener">POSTGRES</a> project at the University of California at Berkeley and has more than 30 years of active development on the core platform.</p>
<p>PostgreSQL has earned a strong reputation for its proven architecture, reliability, data integrity, robust feature set, extensibility, and the dedication of the open source community behind the software to consistently deliver performant and innovative solutions. PostgreSQL runs on <a href="https://www.postgresql.org/download/" target="_blank" rel="noopener">all major operating systems</a>, has been <a href="https://en.wikipedia.org/wiki/ACID" target="_blank" rel="noopener">ACID</a>-compliant since 2001, and has powerful add-ons such as the popular <a href="https://postgis.net/" target="_blank" rel="noopener">PostGIS</a> geospatial database extender. It is no surprise that PostgreSQL has become the open source relational database of choice for many people and organisations.</p>
<p><a href="https://www.postgresql.org/docs/current/tutorial.html" target="_blank" rel="noopener">Getting started</a> with using PostgreSQL has never been easier &#8211; pick a project you want to build, and let PostgreSQL safely and robustly store your data.</p>
<h2>Download and Install PostgreSQL</h2>
<p>Please go to below download link and download the Windows version Binary package and install it and follow the steps from the installer.</p>
<p><a href="https://www.postgresql.org/download/" target="_blank" rel="noopener">https://www.postgresql.org/download/</a></p>
<div id="attachment_6774" style="width: 530px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-download.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6774" class="wp-image-6774 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-download-e1555505700480.png" alt="ssis-PostgreSql-download" width="520" height="706" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-download-e1555505700480.png 520w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-download-e1555505700480-221x300.png 221w" sizes="(max-width: 520px) 100vw, 520px" /></a><p id="caption-attachment-6774" class="wp-caption-text">PostgreSQL Download</p></div>
<h2>Create PostgreSQL Database and Table</h2>
<ol>
<li>To do this, we will first open the pgAdmin Panel.
<div id="attachment_6776" style="width: 434px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-open-pgadmin.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6776" class="wp-image-6776 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-open-pgadmin.png" alt="Open pgAdmin" width="424" height="680" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-open-pgadmin.png 424w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-open-pgadmin-187x300.png 187w" sizes="(max-width: 424px) 100vw, 424px" /></a><p id="caption-attachment-6776" class="wp-caption-text">Open PostgreSQL pgAdmin Panel</p></div></li>
<li>It will open the pgAdmin Panel in the browser. Select Server and Right click on Databases to create database.
<div id="attachment_6777" style="width: 555px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-select-createdatabase.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6777" class="wp-image-6777 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-select-createdatabase.png" alt="PostgreSql Select Create Database" width="545" height="484" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-select-createdatabase.png 545w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-select-createdatabase-300x266.png 300w" sizes="(max-width: 545px) 100vw, 545px" /></a><p id="caption-attachment-6777" class="wp-caption-text">PostgreSQL Select Create Database</p></div></li>
<li>Enter the Database name and click on Save to create it.
<div id="attachment_6778" style="width: 727px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-create-database.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6778" class="wp-image-6778 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-create-database.png" alt="Create PostgreSQL Database" width="717" height="583" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-create-database.png 717w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSql-create-database-300x244.png 300w" sizes="(max-width: 717px) 100vw, 717px" /></a><p id="caption-attachment-6778" class="wp-caption-text">Create PostgreSQL Database</p></div></li>
<li>Now select the created database under it expand Schemas and right click on Tables and click on create Table.
<div id="attachment_6780" style="width: 575px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-create-table.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6780" class="wp-image-6780 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-create-table.png" alt="PostgreSQL Select Create Table" width="565" height="846" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-create-table.png 565w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-create-table-200x300.png 200w" sizes="(max-width: 565px) 100vw, 565px" /></a><p id="caption-attachment-6780" class="wp-caption-text">PostgreSQL Select Create Table</p></div></li>
<li>Now enter the table name and go to columns tab.
<div id="attachment_6782" style="width: 531px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-name.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6782" class="wp-image-6782 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-name.png" alt="PostgreSQL Enter Table Name" width="521" height="472" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-name.png 521w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-name-300x272.png 300w" sizes="(max-width: 521px) 100vw, 521px" /></a><p id="caption-attachment-6782" class="wp-caption-text">PostgreSQL Enter Table Name</p></div></li>
<li>Add the columns by clicking add button and give the desire column name and select the datatype for the same.
<div id="attachment_6783" style="width: 622px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-columns.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6783" class="wp-image-6783 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-columns.png" alt="PostgreSQL Add Table Columns" width="612" height="500" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-columns.png 612w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-add-table-columns-300x245.png 300w" sizes="(max-width: 612px) 100vw, 612px" /></a><p id="caption-attachment-6783" class="wp-caption-text">PostgreSQL Add Table Columns</p></div></li>
<li>Now, let&#8217;s insert some data using Query Editor.
<div id="attachment_6790" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-insert-data-in-table.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6790" class="size-medium_large wp-image-6790" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-insert-data-in-table-768x712.png" alt="PostgreSQL Insert Data in Table" width="720" height="668" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-insert-data-in-table-768x712.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-insert-data-in-table-300x278.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-insert-data-in-table.png 843w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-6790" class="wp-caption-text">PostgreSQL Insert Data in Table</p></div></li>
<li>That&#8217;s it, now let&#8217;s move forward to read the data from this table using <a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-source/" target="_blank" rel="noopener">SSIS PostgreSQL Source</a> in the next the section.
<div id="attachment_6792" style="width: 351px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-query-data.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6792" class="size-full wp-image-6792" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-query-data.png" alt="PostgreSQL Select Query Data" width="341" height="426" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-query-data.png 341w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-select-query-data-240x300.png 240w" sizes="(max-width: 341px) 100vw, 341px" /></a><p id="caption-attachment-6792" class="wp-caption-text">PostgreSQL Select Query Data</p></div></li>
</ol>
<h2><span id="Getting_Started">Getting Started</span></h2>
<p>In order to start, we will show several examples. ZappySys includes an <a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-source/" target="_blank" rel="noopener">SSIS PostgreSQL Source</a> that will help you extract large amount of data from a PostgreSQL Database. PostgreSQL Source supports Multiple modes (i.e. Table or Query) to read data from PostgreSQL Database and many more operations. Here we are showing you is, How to read data from PostgreSQL collection.</p>
<p>You can connect to your PostgreSQL database by entering your PostgreSQL credentials.</p>
<h2>Load PostgreSQL Table Data to CSV File</h2>
<p>Let´s start with an example. In this SSIS PostgreSQL Source Task example, we will load the PostgreSQL table data to CSV file.</p>
<ol>
<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.
<div id="attachment_7934" style="width: 470px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7934" class="size-full wp-image-7934" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" alt="Drag and Drop SSIS Data Flow Task from SSIS Toolbox" width="460" height="155" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png 460w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task-300x101.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a><p id="caption-attachment-7934" class="wp-caption-text">Drag and Drop : Data Flow Task from SSIS Toolbox</p></div></li>
<li>Drag and Drop PostgreSQL Source Task from the SSIS Toolbox and double click on it to edit it.
<div id="attachment_6795" style="width: 618px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-source.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6795" class="size-full wp-image-6795" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-source.png" alt="PostgreSQL Source" width="608" height="321" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-source.png 608w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-drag-drop-PostgreSQL-source-300x158.png 300w" sizes="(max-width: 608px) 100vw, 608px" /></a><p id="caption-attachment-6795" class="wp-caption-text">PostgreSQL Source</p></div></li>
<li>Let&#8217;s create a connection for PostgreSQL Database.
<div id="attachment_6796" style="width: 669px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-create-connection.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6796" class="size-full wp-image-6796" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-create-connection.png" alt="Create PostgreSQL Database Connection" width="659" height="746" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-create-connection.png 659w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-create-connection-265x300.png 265w" sizes="(max-width: 659px) 100vw, 659px" /></a><p id="caption-attachment-6796" class="wp-caption-text">Create PostgreSQL Database Connection</p></div></li>
<li>Let&#8217;s select the Table mode and select the table and click on preview.
<div id="attachment_6798" style="width: 658px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-table.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6798" class="size-full wp-image-6798" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-table.png" alt="PostgreSQL Table Preview" width="648" height="622" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-table.png 648w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-table-300x288.png 300w" sizes="(max-width: 648px) 100vw, 648px" /></a><p id="caption-attachment-6798" class="wp-caption-text">PostgreSQL Table Preview</p></div></li>
<li>You can also use the query mode to filter the data and do more operation using query. You can find our several Examples also by clicking on &lt;&lt;View Examples&gt;&gt;.
<div id="attachment_6797" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-query.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6797" class="size-medium_large wp-image-6797" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-query-768x529.png" alt="PostgreSQL Query Preview" width="720" height="496" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-query-768x529.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-query-300x207.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-preview-query.png 857w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-6797" class="wp-caption-text">PostgreSQL Query Preview</p></div></li>
<li>Now let&#8217;s add Trash destination Task and edit it and enter the CSV File Path.
<div id="attachment_6799" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-to-trash-destination.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6799" class="size-medium_large wp-image-6799" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-to-trash-destination-768x525.png" alt="Trash Destination : Setup CSV File Path" width="720" height="492" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-to-trash-destination-768x525.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-to-trash-destination-300x205.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-to-trash-destination.png 792w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-6799" class="wp-caption-text">Trash Destination : Setup CSV File Path</p></div></li>
<li>That&#8217;s it now execute the package and it will load data from PostgreSQL Table to CSV File.
<div id="attachment_6800" style="width: 234px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-csv-data.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6800" class="size-full wp-image-6800" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-PostgreSQL-csv-data.png" alt="PostgreSQL : CSV Data" width="224" height="282" /></a><p id="caption-attachment-6800" class="wp-caption-text">PostgreSQL : CSV Data</p></div></li>
</ol>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>Above all, in this blog, we learned how to Read data from PostgreSQL in SSIS. We used <a href="https://zappysys.com/products/ssis-powerpack/ssis-postgresql-source/" target="_blank" rel="noopener">SSIS PostgreSQL Source</a> to read the data from PostgreSQL Table and load data into CSV File. You can <a href="https://zappysys.com/products/ssis-powerpack/">download SSIS PowerPack here</a> to try many other scenarios not discussed in this blog along with 70+ other components.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information:</p>
<ul>
<li><a href="https://www.postgresql.org/about/" target="_blank" rel="noopener">About PostgreSQL</a></li>
<li><a href="https://www.postgresql.org/docs/" target="_blank" rel="noopener">PostgreSQL Documentation</a></li>
<li><a href="https://www.tutorialspoint.com/postgresql/postgresql_select_query.htm" target="_blank" rel="noopener">PostgreSQL – SELECT Query</a></li>
<li>Help File : <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=ssis-postgresql-source.htm" target="_blank" rel="noopener">PostgreSQL Source</a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/ssis-load-postgresql-table-data-csv-file/">Load PostgreSQL Table Data to CSV File in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
