如何使用 winebottler 在 MacOSX 上运行需要 sql server 本机客户端的 win32 本机应用程序?

发布于 2024-09-12 19:44:17 字数 300 浏览 1 评论 0原文

我正在尝试 WineBottler 并且我想尝试在 OSX 上运行用 Delphi 编写的 win32 本机应用程序。

应用程序运行,但由于无法连接到 SQL Server,所以我停在登录屏幕上。

有谁知道如何在 OSX 上安装和配置 SQL Server 本机客户端,以便它可以与 WineBottler 一起使用?

注意:我将“wine”作为标签,因为“winbottler”不可用。

I am experimenting with WineBottler and I would like to try to run my win32 native application written in Delphi on OSX.

The application runs, but I stop at login screen since I cannot connect to SQL Server.

Does anyonw know how to install and configure SQL Server native client on OSX so that it is usable with WineBottler?

Note: I put "wine" as tag since "winebottler" is not available.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

淑女气质 2024-09-19 19:44:17

我有一个 Delphi 应用程序,它使用 MDAC 2.8 与 Jet 提供程序进行 ADO 连接。我使用 Winetricks 安装 MDAC 2.8,效果很好。如果无法安装 SQL Server Native Client,也许您的应用程序可以通过调整连接字符串来使用 OLEDB SQL Server 提供程序。您是否使用了 SQL Server Native Client 独有的功能?

I have a Delphi application that uses MDAC 2.8 for ADO connection to the Jet provider. I use Winetricks to install MDAC 2.8, and it works great. If you can't get SQL Server Native Client to install, perhaps your application can use the OLEDB SQL Server provider by tweaking your connection strings. Are you using any features that are only in SQL Server Native Client?

荒人说梦 2024-09-19 19:44:17

如果您放入 kbmMW、远程对象或 DataSnap 等中间件,您的麻烦就会少很多。它们都可以使用纯 TCP/IP(通过 http 或类似的更高级别协议),并且不需要客户端库。您将需要一台额外的服务器,但创建一个仅在客户端和 SQL 服务器之间转发 SQL 和数据的服务器很容易。请注意,SQL Server 许可仍然存在。

另一方面,您可以尝试安装 SQL Server 本机客户端,一些旧版本 - 例如。对于 SQL Server 2005,在您的应用程序的“瓶子”中。然而,我不确定这是否合法。我认为 MS 禁止在 Windows 以外的操作系统上安装本机客户端。

FreeTDS 本机客户端可与 unices 的 MSSQL 配合使用,但未移植为可从 Delphi 使用(如 dbx 驱动程序)。

You would have a lot less trouble if you put in some middleware like kbmMW, Remote Objects, or DataSnap. All of them can use plain TCP/IP (via http or like higher level protocol), and don't require client side libs. You will need an extra server, but it is easy to create one that just forwards your SQL and data between clients and SQL server. Note that SQL server licensing remains.

On the other hand, you can try to install SQL Server native client, some older version of it - eg. for SQL Server 2005, in that "bottle" with your application. Yet, I'm not sure if that is legal thing to do. I think that MS prohibits native client installation on OS other than Windows.

There is FreeTDS native client that works with MSSQL from unices, but it is not ported to be usable from Delphi (like dbx driver).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文