简体   繁体   English

无法使用 UNIX 上的 Delphi FireDAC 访问 SQL 服务器

[英]No Access to SQL Server with Delphi FireDAC on UNIX

I have an application running under Windows connecting to a SQL Server.我有一个在 Windows 下运行的应用程序连接到 SQL 服务器。 The application works perfectly fine under Windows.该应用程序在 Windows 下运行良好。 The same application should work likewise on Linux (Ubuntu 18.04) via Delphi's cross-platform development.通过 Delphi 的跨平台开发,相同的应用程序应该在 Linux (Ubuntu 18.04) 上同样工作。 Yet, I get the然而,我得到了

驱动程序错误消息. .

This happened after installation of the driver via Microsoft's tutorial: https://docs.microsoft.com/de-de/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15这发生在通过微软教程安装驱动程序后: https://docs.microsoft.com/de-de/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server ?view=sql-server-ver15

Does someone have any idea what's going wrong?有人知道出了什么问题吗?

When I started developing my cross-platform FMX application that was supposed to work with SQL Server, I also used FireDAC in the beginning.当我开始开发应该与 SQL 服务器一起使用的跨平台 FMX 应用程序时,我一开始也使用了 FireDAC。 But, when it came time to deploy my application on Linux, I ran into similar difficulties.但是,当需要在 Linux 上部署我的应用程序时,我遇到了类似的困难。 I decided that configuring each client computer to install my application was too laborious and I switched to SDAC, which allows working directly with SQL Server not only on Windows but on Linux and macOS.我决定配置每台客户端计算机来安装我的应用程序太费力了,我切换到 SDAC,它允许直接使用 SQL 服务器不仅在 Windows 上,而且在 ZEDC9F0A5A5D57797BF68E3736474383Z 上Now I just need to copy my application, and it works everywhere without any additional settings.现在我只需要复制我的应用程序,它可以在任何地方使用,无需任何额外设置。 I advise you to try this option.我建议你试试这个选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM