php链接sql server 2008失败报错This extension requires the Microsoft SQL Server 2012...

php链接sql server 2008失败  This extension requires the Microsoft SQL Server 2012

今天在使用php连接sql server 2008的时候,报错,具体报错以下:php

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=163712html

翻译过来的意思就是:sql

这个扩展须要Microsoft SQL Server 2012本地客户端。访问如下URL下载Microsoft SQL Server 2012 x86原生客户端ODBC驱动程序:http://go.microsoft.com/fwlink/?LinkId=163712ui

既然知道了问题,那么如何的解决呢?spa

第1、咱们首先要看看php里面有没有开启支持sql server的服务。翻译

进入php.ini文件中看到sqlsrv已经开启了:code

 
  1. extension=php_pdo_sqlsrv.dll
  2. extension=php_sqlsrv.dll

第2、咱们根据上面提示的网址下载微软的sql server 2012ODBC驱动程序。server

下载下来,傻瓜式的操做便可。htm

只要经过上面的两个操做就能够很轻松的解决hp链接sql server 2008失败报错的问题。pdo

相关文章
相关标签/搜索