从PHP连接到MS SQL Server上的Linux呢?
问题描述:
我需要从一个Linux服务器上运行PHP脚本连接到MS SQL Server数据库。我期待在使用freetds的,因为针对Linux的官方MS SQL Server驱动程序。这是我最好的选择?它是确定在生产环境中?是否还有其他的选择,也许是ODBC?
I need to connect to an MS SQL Server database from a PHP script running on a Linux server. I'm looking at using FreeTDS as there is no official MS SQL Server driver for Linux. Is this my best option? Is it ok in a production environment? Are there other options, perhaps ODBC?
答
我所在的公司已经运行了freetds的现在连接到SQL 2000我们的生产服务器上近6年无需更换。有一对夫妇有特殊字符编码的问题,但总体效果很好。
The company I work for has been running FreeTDS to connect to SQL 2000 on our production server for almost 6 years now. There's a couple of issues with special character encoding, but overall it works well.