Postgresql to MS SQL Server

coool sweet 61 Reputation points
2022-02-19T20:22:29.447+00:00

hi,

Using SSIS, I need to download data from snowmirror PostgreSQL to sql server.

Could anyone tell me what steps I need to take.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,125 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,609 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 38,371 Reputation points
    2022-02-21T01:22:44.627+00:00

    Hi @coool sweet ,

    Update:

    You may install the PostgreSQL ODBC driver and configure ODBC drivers to use the ODBC source to load data from PostgreSQL to MSSQL.

    Here is a detailed tutorial for your reference.

    ssis-with-postgresql-connect-to-postgresql-with-ssis-components

    You may also Connect to a PostgreSQL Data Source via SQL Server Import and Export Wizard and then load the data.

    connect-to-a-postgresql-data-source-sql-server-import-and-export-wizard

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Olaf Helper 45,286 Reputation points
    2022-02-21T07:36:58.557+00:00

    Could anyone tell me what steps I need to take

    Add a data flow task, there a data source = PostgreSql and a data destination = SQL Server.

    0 comments No comments

  3. si li 20 Reputation points
    2023-06-08T15:27:01.63+00:00

    You can load data from PostgreSQL to SQL Server using tds-fdw.

    CREATE FOREIGN DATA WRAPPER tds-fdw;

    CREATE SERVER mssql_svr FOREIGN DATA WRAPPER tds_fdw OPTIONS (servername '127.0.0.1', port '1433', database 'tds_fdw_test', tds_version '7.1');

    CREATE FOREIGN TABLE mssql_table (id integer, data varchar) SERVER mssql_svr OPTIONS (table_name 'dbo.mytable', row_estimate_method 'showplan_all');

    INSERT INTO mssql_table SELECT * FROM pgsql_table;

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.