从PHP连接到MS SQL Server上的Linux呢? [英] Connect to MS SQL Server from PHP on Linux?

查看:157
本文介绍了从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.

这篇关于从PHP连接到MS SQL Server上的Linux呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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