{"id":6810,"date":"2019-04-22T08:49:34","date_gmt":"2019-04-22T08:49:34","guid":{"rendered":"https:\/\/zappysys.com\/blog\/?p=6810"},"modified":"2019-09-13T11:35:35","modified_gmt":"2019-09-13T11:35:35","slug":"export-postgresql-table-data-sql-server-ssis","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/","title":{"rendered":"Export PostgreSQL Table Data to SQL Server in SSIS"},"content":{"rendered":"<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\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-postgresql-source\/\" target=\"_blank\" rel=\"noopener\">SSIS PostgreSQL Source<\/a>. PostgreSQL Source\u00a0supports SQL language to query PostgreSQL data. PostgreSQL is a powerful, open source relational database with strong reputation for reliability, feature robustness, and performance.<\/p>\n<p>In nutshell,\u00a0this post will focus on how to read PostgreSQL Table Data and write into SQL Server table\u00a0in few clicks.<\/p>\n<h2><span id=\"Prerequisite\">Prerequisite<\/span><\/h2>\n<ol>\n<li>First, you will need to have SSIS installed<\/li>\n<li>Secondly, make sure to have SSDT<\/li>\n<li>Thirdly, You have obtained PostgreSQL Credential.<\/li>\n<li>Finally, do not forget to install\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">ZappySys\u00a0SSIS PowerPack<\/a><\/li>\n<\/ol>\n<p><strong>Components Mentioned in this article<\/strong><br \/>\n<div class=\"su-table su-table-alternate\">\n<table style=\"width: 390px\">\n<tbody>\n<tr style=\"height: 40px\">\n<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>\n<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>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>What is PostgreSQL?<\/h2>\n<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>\n<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>\n<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>\n<h2>Download and Install PostgreSQL<\/h2>\n<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>\n<p><a href=\"https:\/\/www.postgresql.org\/download\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.postgresql.org\/download\/<\/a><\/p>\n<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>\n<h2>Create PostgreSQL Database and Table<\/h2>\n<ol>\n<li>To do this, we will first open the pgAdmin Panel.\n<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\u00a0PostgreSQL pgAdmin Panel<\/p><\/div><\/li>\n<li>It will open the pgAdmin Panel in the browser. Select Server\u00a0and Right click on Databases to create database.\n<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>\n<li>Enter the Database name and click on Save to create it.\n<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>\n<li>Now select the created database under it expand Schemas and right click on Tables and click on create Table.\n<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>\n<li>Now enter the table name and go to columns tab.\n<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>\n<li>Add the columns by clicking add button and give the desire column name and select the datatype for the same.\n<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>\n<li>Now, let&#8217;s insert some data using Query Editor.\n<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>\n<li>That&#8217;s it, now let&#8217;s move forward to read the data from this table using\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-postgresql-source\/\" target=\"_blank\" rel=\"noopener\">SSIS PostgreSQL Source<\/a> in the next the section.\n<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>\n<\/ol>\n<h2><span id=\"Getting_Started\">Getting Started<\/span><\/h2>\n<p>In order to start, we will show several examples. ZappySys includes an\u00a0<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\u00a0supports 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>\n<p>You can connect to your PostgreSQL database by entering your PostgreSQL credentials.<\/p>\n<h2>Configure\u00a0PostgreSQL Source to read data from the table<\/h2>\n<p>Let\u00b4s start with an example. In this SSIS PostgreSQL Source Task example, we will load the\u00a0PostgreSQL table data to SQL Server.<\/p>\n<ol>\n<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.\n<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>\n<li>Drag and Drop PostgreSQL Source Task from the SSIS Toolbox and double click on it to edit it.\n<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>\n<li>Let&#8217;s create a connection for PostgreSQL Database.\n<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>\n<li>Let&#8217;s select the Table mode and select the table and click on preview.\n<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>\n<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;.\n<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>\n<li>That&#8217;s it we are ready to load PostgreSQL Table data to SQL Server.<\/li>\n<\/ol>\n<h2>Load PostgreSQL Table data into SQL Server<\/h2>\n<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>\r\n<h3>Step 1: Add Upsert Destination to Data Flow<\/h3>\r\n<ol>\r\n<li>Drag and drop the <strong>Upsert Destination<\/strong> component from the SSIS Toolbox.<\/li>\r\n<li>Connect your source component (e.g., JSON \/ REST \/ Other Source) to the Upsert Destination.<\/li>\r\n<\/ol>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/08\/ssis-data-flow-drag-drop-upsert-destination.png\">\r\n<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>\r\n<p class=\"wp-caption-text\">SSIS - Data Flow - Drang and Drop Upsert Destination Component<\/p>\r\n<\/div>\r\n<h3>Step 2: Configure Target Connection<\/h3>\r\n<ol>\r\n<li>Double-click the <strong>Upsert Destination<\/strong> component to open the configuration window.<\/li>\r\n<li>Under <strong>Connection<\/strong>, select an existing target connection or click <strong>NEW<\/strong> to create a new connection.\r\n<ul>\r\n<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n<h3>Step 3: Select or Create Target Table<\/h3>\r\n<ol>\r\n<li>In the <strong>Target Table<\/strong> dropdown, select the table where you want to load data.<\/li>\r\n<li>Optionally, click <strong>NEW<\/strong> to create a new table based on the source columns.<\/li>\r\n<\/ol>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-configuration.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-configuration.png\" \/><\/a>\r\n<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>\r\n<\/div>\r\n<h3>Step 4: Map Columns<\/h3>\r\n<ol>\r\n<li>Go to the <strong>Mappings<\/strong> tab.<\/li>\r\n<li>Click <strong>Auto Map<\/strong> to map source columns to target columns by name.<\/li>\r\n<li>Ensure you <strong>check the Primary key column(s)<\/strong> that will determine whether a record is inserted or updated.<\/li>\r\n<li>You can manually adjust the mappings if necessary.<\/li>\r\n<\/ol>\r\n <div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-key.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-key.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">SSIS Upsert Destination - Columns Mappings<\/p>\r\n<\/div>\r\n<h3>Step 5: Save Settings<\/h3>\r\n<ul>\r\n<li>Click <strong>OK<\/strong> to save the Upsert Destination configuration.<\/li>\r\n<\/ul>\r\n<h3>Step 6: Optional: Add Logging or Analysis<\/h3>\r\n<ul>\r\n<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.<\/li>\r\n<\/ul>\r\n<h3>Step 7: Execute the Package<\/h3>\r\n<ul>\r\n<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.<\/li>\r\n<\/ul>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/12\/ssis-upsert-destination-execute.png\">\r\n<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>\r\n<p class=\"wp-caption-text\">SSIS Upsert Destination Execution<\/p>\r\n<\/div><\/div>\n<h2><span id=\"Conclusion\">Conclusion<\/span><\/h2>\n<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>\u00a0to read the data from\u00a0PostgreSQL Table and load data into SQL Server Table. You can\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\">download SSIS PowerPack here<\/a>\u00a0to try many other scenarios not discussed in this blog along with 70+ other components.<\/p>\n<h2><span id=\"References\">References<\/span><\/h2>\n<p>Finally, you can use the following links for more information:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.postgresql.org\/about\/\" target=\"_blank\" rel=\"noopener\">About PostgreSQL<\/a><\/li>\n<li><a href=\"https:\/\/www.postgresql.org\/docs\/\" target=\"_blank\" rel=\"noopener\">PostgreSQL Documentation<\/a><\/li>\n<li><a href=\"https:\/\/www.tutorialspoint.com\/postgresql\/postgresql_select_query.htm\" target=\"_blank\" rel=\"noopener\">PostgreSQL \u2013 SELECT Query<\/a><\/li>\n<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>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<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\u00a0SSIS PostgreSQL Source. PostgreSQL Source\u00a0supports SQL language to query PostgreSQL data. PostgreSQL is a powerful, open source relational database with strong reputation for reliability, feature robustness, and performance. [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":6771,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[463,485],"tags":[482,283,48,12],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Export PostgreSQL Table Data to SQL Server in SSIS | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"Export PostgreSQL Table Data to SQL Server in SSIS. Using PostgreSQL Source Connector we read the PostgreSQL Table data and Load into SQL Server\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Export PostgreSQL Table Data to SQL Server in SSIS | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"Export PostgreSQL Table Data to SQL Server in SSIS. Using PostgreSQL Source Connector we read the PostgreSQL Table data and Load into SQL Server\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/\" \/>\r\n<meta property=\"og:site_name\" content=\"ZappySys Blog\" \/>\r\n<meta property=\"article:published_time\" content=\"2019-04-22T08:49:34+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2019-09-13T11:35:35+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"100\" \/>\r\n\t<meta property=\"og:image:height\" content=\"100\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"ZappySys\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ZappySys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/\",\"url\":\"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/\",\"name\":\"Export PostgreSQL Table Data to SQL Server in SSIS | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png\",\"datePublished\":\"2019-04-22T08:49:34+00:00\",\"dateModified\":\"2019-09-13T11:35:35+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35\"},\"description\":\"Export PostgreSQL Table Data to SQL Server in SSIS. Using PostgreSQL Source Connector we read the PostgreSQL Table data and Load into SQL Server\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png\",\"width\":100,\"height\":100,\"caption\":\"ssis-PostgreSql-Source\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Export PostgreSQL Table Data to SQL Server in SSIS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zappysys.com\/blog\/#website\",\"url\":\"https:\/\/zappysys.com\/blog\/\",\"name\":\"ZappySys Blog\",\"description\":\"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zappysys.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35\",\"name\":\"ZappySys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g\",\"caption\":\"ZappySys\"},\"url\":\"https:\/\/zappysys.com\/blog\/author\/hshah\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Export PostgreSQL Table Data to SQL Server in SSIS | ZappySys Blog","description":"Export PostgreSQL Table Data to SQL Server in SSIS. Using PostgreSQL Source Connector we read the PostgreSQL Table data and Load into SQL Server","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/","og_locale":"en_US","og_type":"article","og_title":"Export PostgreSQL Table Data to SQL Server in SSIS | ZappySys Blog","og_description":"Export PostgreSQL Table Data to SQL Server in SSIS. Using PostgreSQL Source Connector we read the PostgreSQL Table data and Load into SQL Server","og_url":"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/","og_site_name":"ZappySys Blog","article_published_time":"2019-04-22T08:49:34+00:00","article_modified_time":"2019-09-13T11:35:35+00:00","og_image":[{"width":100,"height":100,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png","type":"image\/png"}],"author":"ZappySys","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ZappySys","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/","url":"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/","name":"Export PostgreSQL Table Data to SQL Server in SSIS | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png","datePublished":"2019-04-22T08:49:34+00:00","dateModified":"2019-09-13T11:35:35+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35"},"description":"Export PostgreSQL Table Data to SQL Server in SSIS. Using PostgreSQL Source Connector we read the PostgreSQL Table data and Load into SQL Server","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png","width":100,"height":100,"caption":"ssis-PostgreSql-Source"},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/export-postgresql-table-data-sql-server-ssis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Export PostgreSQL Table Data to SQL Server in SSIS"}]},{"@type":"WebSite","@id":"https:\/\/zappysys.com\/blog\/#website","url":"https:\/\/zappysys.com\/blog\/","name":"ZappySys Blog","description":"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zappysys.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35","name":"ZappySys","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g","caption":"ZappySys"},"url":"https:\/\/zappysys.com\/blog\/author\/hshah\/"}]}},"_links":{"self":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6810"}],"collection":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/comments?post=6810"}],"version-history":[{"count":9,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6810\/revisions"}],"predecessor-version":[{"id":9369,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6810\/revisions\/9369"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/6771"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=6810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=6810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=6810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}