使用PostgreSQL连接MSSQL创建的数据库 [英] Connect a MSSQL created database with PostgreSQL

查看:744
本文介绍了使用PostgreSQL连接MSSQL创建的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Mac和PostgreSQL是数据库管理的选择。我无法安装MSSQL。有一个由MSSQL创建和管理的数据库。
我不能通过脚本将整个数据复制到我的数据库(因为使用实时数据)
我唯一的选择是连接MSSQL用PostgreSQL创建的数据库。

I use Mac and PostgreSQL is the choice for db management. I can not install MSSQL. There's a db which is created and managed by MSSQL. I must not copy the entire data via a script, to my database (because of using real time data) My only option is, connecting that MSSQL created db with PostgreSQL.

有可能吗?如果是,如何?我的查询有任何相关限制吗?
感谢。

Is it possible? If yes, how? Will there be any relevant limitations for my queries? Thanks.

其他详细信息:

我会进行选择,
我不会修改现有的数据。

I'll make selections, calculations, statistically. I won't modify the existing data.

推荐答案

此功能可让您连接到不同的数据库从PostgreSQL本身,被称为外来数据包装器

The feature, which allows you to connect to a different database from within PostgreSQL itself, is called foreign data wrapper.

这里有一个可用的外部数据包装器列表,但不包括mssql。但是ODBC是,因此(在理论上)如果您安装 odbc_fdw ,您可以在PostgreSQL实例中访问外部mssql表。

Here, there is a list of available foreign data wrappers, but mssql is not included. But ODBC is, so (in theory) if you install odbc_fdw, you can access foreign mssql tables in your PostgreSQL instance.

这篇关于使用PostgreSQL连接MSSQL创建的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆