Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export data from SQL Server to PostgreSQL?

Tags:

postgresql

I need to export all tables from SQL Server to PostgreSQL.

Try: I tried from SQL Server IDE but at some stage its giving the error about data types are different.

Question:How can I do export of data from SQL Server to PostgreSQL? Is COPY does my job? If yes, then how can I export all tables including records?

like image 588
Sarfaraz Makandar Avatar asked Jun 06 '14 09:06

Sarfaraz Makandar


1 Answers

You can't export data from MSsql then import to PostgreSql because it is not same syntax, data type, but you can use tool to migration data from mssql to postgreSql, See more in topic migrate data from MS SQL to PostgreSQL?

like image 130
NuongNguyen Avatar answered Sep 21 '22 13:09

NuongNguyen