【发布时间】:2014-02-17 17:40:56
【问题描述】:
我正在尝试通过 postgres 访问 sql server 表,我尝试将this 包装器用于具有 ODBC 驱动程序的数据库,但最新版本仅与 9.1 版本的 Postgresql 兼容
我需要 Postgresql 9.3 的 odbc 驱动程序
这是我尝试执行 CREATE EXTENSION 语句时的 sql shell (psql)
postgres=# CREATE EXTENSION odbc_fdw;
ERROR: biblioteca «C:/Archivos de programa/PostgreSQL/9.3/lib/odbc_fdw.dll» inc
ompatible: versión no coincide
DETALLE: Servidor tiene versión 9.3, biblioteca es versión 9.1.
postgres=#
错误显示“库 «C:/Archivos de programa/PostgreSQL/9.3/lib/odbc_fdw.dll» inc 兼容:版本不匹配 DETAIL:服务器版本为9.3,lib版本为9.1"
根据我的搜索,没有其他版本的 odbc_fdw.dll
我错过了什么吗?我需要看看别的吗?
【问题讨论】:
-
可能的解决方法 - 另一个方向:使用 ODBC 从 SQL Server 到 Postgres 的 LINKED SERVER - 然后将数据推送到 Postgres 的某个临时表,然后读取并处理。或者 - 通过网络服务公开您的数据。
标签: sql sql-server postgresql