I am using OPENQUERY through an ODBC connection to insert records from SQL server to Postgres. 
But it's very slow - a few minutes for 10000 records.
Also, SQL Server Service crashes when amount of data gets too large.
Anybody knows a better way ?
I am using OPENQUERY through an ODBC connection to insert records from SQL server to Postgres. 
But it's very slow - a few minutes for 10000 records.
Also, SQL Server Service crashes when amount of data gets too large.
Anybody knows a better way ?
 
    
    Export the data in CSV format using a db utility command.
Import the data using the postgres COPY command.
 
    
    The standard and the simplest way is to use SSIS built-in Import/Export feature. You can find the steps in another SO question/answer.
