Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1076265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:23:23+00:00 2026-05-16T21:23:23+00:00

I need to migrate a database from Postgres 7 to SQL Server 2008. I

  • 0

I need to migrate a database from Postgres 7 to SQL Server 2008. I am familiar with the SSIS Import and Export wizard but I am stumped about how to define the data source or define the data provider.

What is the best way to migrate Postgres to SQL Server, and how do I define data sources/drivers for postgres?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:23:23+00:00Added an answer on May 16, 2026 at 9:23 pm

    I wish you the best of luck in trying to import from PostgreSQL into SQL Server using SQL Server Import and Export Wizard. However, I have read numerous message board threads with people having trouble getting it to work. For example:

    • Import Data from Postgresql to SQL Server 08 Error

    Here is the most helpful thread that I have found on the topic:

    • Import data from postgreSQL into SQL server 2005

    To help someone who might be trying to achieve similar goal as mine. Instead of selecting the “PostgreSQL OLE DB Provider” in the data source drop down menu of SQL Server Import and Export Wizard, select “.Net Framework Data Provider for Odbc”

    Then you have to make a DSN and provide a ConnectionString. Following ConnectionString worked for me

    Driver={PostgreSQL};Server=localhost;Port=5432;Database=TestMasterMap;Uid=postgres;Pwd=;

    To make a DSN you have to go into Administrative Toolsà Data Sources (ODBC) and create a user DSN. Once this is done you can supply the DSN name in the DSN text box of SQL Server Import and Export Wizard.


    One commenter claimed that it worked, but that he got “Out of memory while reading tuples” errors on big tables. So for tables with more than 3 million rows, he had to break the import up into 3 million row chunks.

    Also, there’s a link to the native .NET provider for PostgreSQL in that thread.

    Personally, if this is something that I only had to do once, and if I understood the schema and the data fairly well, I would try:

    1. export the data from PostgreSQL as flat files
    2. create the schema in SQL Server (without PKs or constraints)
    3. use the SSIS Import/Export Wizard to import the flat files
    4. then create PKs and necessary constraints

    It might take you less time to do the above than messing with SSIS Import/Export Wizard and PostgreSQL for days (but it would be nice if those tools worked!)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to migrate database from mysql to ms sql server 2005.I imported table
What is the most efficient way to migrate an SQL Server Express database from
I need to manually migrate modified stored procedures from a DEV SQL Server 2005
I need to migrate some data from one MYSQL database to another but the
I've been asked to migrate my application from using a SQL Server database to
We need to migrate our database from MSSQL to Oracle and we have over
I need to move a database with a Django schema from Postgres to MySQL,
I need to create a quick and dirty solution to migrate data from database
I want to migrate database server from Oracle 9i to Oracle 11g (WebLogic version
I'm very new to Python, but I need to migrate a project from PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.