Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

query SQL Server from PostgreSQL

There are SQL Server 2008 R2 and PostgreSQL 9.2 under Windows (currently XP SP3). How can I query SQL Server from PostgreSQL? No problem when SQL Server->PostgreSQL via Linked Server.
Searching web I found odbc_fdw which is not possible to compile for 9.2.

Is there any working solution?

like image 984
revoua Avatar asked Feb 02 '13 23:02

revoua


1 Answers

In addition to the standard but immature SQL/MED and foreign data wrappers mentioned by @vyegorov, the traditional solution to this problem has been DBI-Link, a set of foreign data mapping functions that use Perl DBI via plperl.

http://pgfoundry.org/projects/dbi-link/

like image 155
Craig Ringer Avatar answered Oct 25 '22 19:10

Craig Ringer