首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PHP 5.4与MS SQL server 2008 r2的连接

PHP 5.4与MS SQL server 2008 r2的连接
EN

Stack Overflow用户
提问于 2014-02-21 04:38:36
回答 1查看 825关注 0票数 0

我想连接到本地主机上现有的MS-SQL数据库,我已经安装了MS-SQL驱动程序3.0并编辑了php.ini以启用扩展,即

代码语言:javascript
复制
 extension=php_sqlsrv_54_ts.dll

我已经安装了native client 10.0,并收到以下错误:

代码语言:javascript
复制
array (size=2)
  0 => 
    array (size=6)
      0 => string 'IMSSP' (length=5)
      'SQLSTATE' => string 'IMSSP' (length=5)
      1 => int -49
      'code' => int -49
      2 => string 'This extension requires the Microsoft SQL Server 2012 Native Client. Access the following URL to download the Microsoft SQL Server 2012 Native Client ODBC driver for x86: http://go.microsoft.com/fwlink/?LinkId=163712' (length=216)
      'message' => string 'This extension requires the Microsoft SQL Server 2012 Native Client. Access the following URL to download the Microsoft SQL Server 2012 Native Client ODBC driver for x86: http://go.microsoft.com/fwlink/?LinkId=163712' (length=216)

如果我尝试安装Microsoft SQL Server 2012 Native Client,错误是操作系统不受支持。

服务器正在运行MS Server2008 R2、MS-SQL2008 R2和Apache2.4.4

EN

回答 1

Stack Overflow用户

发布于 2014-02-21 14:12:48

从错误消息看,您似乎需要从以下位置下载并安装"Microsoft SQL Server 2012 Native Client ODBC driver for x86“:

http://www.sqlservercentral.com/Forums/Topic1458276-2799-1.aspx

确保获得适用于您的操作系统的正确版本的Native Client

该页面提供了让MSQL为您工作的所有链接。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21919041

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档