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

  • SEARCH
  • Home
  • 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 8404971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:43:55+00:00 2026-06-09T22:43:55+00:00

I have an SQL file generated from a Postgres database that I want to

  • 0

I have an SQL file generated from a Postgres database that I want to run on SQL Server 2008. The SQL file creates, drops and inserts data into tables. SQL Server returns a number of errors in the syntax.

Is there a way to make the file compatible?

If not, what is the best way to export data from Postgres to SQL Server?

  • 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-06-09T22:43:57+00:00Added an answer on June 9, 2026 at 10:43 pm

    The best approach is usually to restore the dump to a PostgreSQL server, then copy the data out of the live server using:

    • A schema-only dump you hand-convert, followed by a pg_dump --data-only --inserts dump that might load as-is if you’re lucky, and otherwise can be machine converted with text processing tools; or

    • A dedicated conversion tool if you can find one for Pg -> MS SQL. Maybe the MS SQL ODBC dump/export tool referred to in the linked post is a special case of an ETL tool.

    • Usually better, use ETL tools like Talend or Pentaho to aid in the conversion.

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

Sidebar

Related Questions

I have a .sql script file that I want to run once every 24
hey there i have this code that should save a file from sql server
I have a MS sql database (not server), my program reads file structure from
A database that was originally from SQL Server 2008, was restored into SQL Server
I have a huge .sql file (1.5 gb). I generated it from scripting a
I have a .sql file and I want to load it into MySQL database.
I have an SQL 2008 database project in Visual Studio 2010 that is sync'ed
I have a sql file generated by mysqldump --all-databases . There are many databases
I have a SQL procedure that generates a util file as its output depending
I have a .sql file from a MySQL dump containing tables, definitions and data

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.