有没有关于如何在 Ubuntu 上安装 SQL Server Native Client 的教程。因为在下图中我想配置 DSN。
/etc/odbc.ini
[login]
// Driver = SQL Server Native Client // the driver is not working
// but when I used the
Driver = ODBC Driver 13 for SQL Server // is now working
Server = myhost.com
Database = MYDATABASE_DBF
最佳答案
连接到 SQL Server 的方法有多种。 native 客户端就是其中之一。但微软不建议将其用于新的开发工作。在您的情况下,您可能需要用于 SQL Server 的 Microsoft ODBC 驱动程序。请参阅the link @HongOoi 提供了有关这方面的更多信息。
This link包含 Microsoft 对其支持的各种连接选项的概述。它包括对 native 客户端的以下评论:
The SQL Server Native Client OLE DB provider was included in SQL Server Native Client in SQL Server 2005, SQL Server 2008, SQL Server 2008 R2, and SQL Server 2012. After SQL Server 2012, the SQL Server Native Client OLE DB provider will no longer be included in SQL Server Native Client.
After SQL Server 2012, the ODBC driver will be updated for the most recent server features, including Microsoft Windows Azure SQL Database, and released as the Microsoft ODBC Driver for SQL Server.
关于sql-server - 如何在UBUNTU上安装SQL Server Native Client 11.0?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40842719/