Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
配置Windows 10 WAMP PHP以连接到SQLServer2008_Php_Sql Server 2008_Windows 10 - Fatal编程技术网

配置Windows 10 WAMP PHP以连接到SQLServer2008

配置Windows 10 WAMP PHP以连接到SQLServer2008,php,sql-server-2008,windows-10,Php,Sql Server 2008,Windows 10,我花了几天时间在这个项目上,试图连接到一个数据库,但已经达到了某种停滞状态。我希望有人对此有一些经验 我已获得Windows Server(R)2008机箱的远程桌面凭据。这台机器上运行着一个数据库,客户端希望从另一个域中提取数据—它正在运行SQLServer2008 作为测试,我试图通过本地WAMP安装连接到它。在将以下.dll降级为32位版本后,我能够在本地PHP中运行它: -php_pdo_sqlsrv_55_ts.dll -php_sqlsrv_55_ts.dll 但是,当我尝试使用PD

我花了几天时间在这个项目上,试图连接到一个数据库,但已经达到了某种停滞状态。我希望有人对此有一些经验

我已获得Windows Server(R)2008机箱的远程桌面凭据。这台机器上运行着一个数据库,客户端希望从另一个域中提取数据—它正在运行SQLServer2008

作为测试,我试图通过本地WAMP安装连接到它。在将以下.dll降级为32位版本后,我能够在本地PHP中运行它: -php_pdo_sqlsrv_55_ts.dll -php_sqlsrv_55_ts.dll

但是,当我尝试使用PDO或sqlsrv_connect函数进行连接时,我收到错误消息:

SQLSTATE[IMSSP]: This extension requires the Microsoft ODBC Driver 11 for SQL Server to communicate with SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712
Installation of this product failed because it is not supported on this operating system. For information on supported configurations, see the product documentation. 
当我尝试下载并安装Microsoft ODBC驱动程序11()时,我收到以下错误消息:

SQLSTATE[IMSSP]: This extension requires the Microsoft ODBC Driver 11 for SQL Server to communicate with SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712
Installation of this product failed because it is not supported on this operating system. For information on supported configurations, see the product documentation. 
我的问题是,有没有办法从Windows 10机器上安装的WAMP连接到SQLServer2008数据库据我所知,它在Windows 10上不受支持


谢谢您抽出时间。

我使用的是Windows 10。我安装了运行PHP7.0.10的64位wamp服务器

我能够连接到Microsoft Azure数据库

我必须安装 用于SQL Server®-Windows的Microsoft®ODBC驱动程序11 这个版本

ENU\x64\msodbcsql.msi
这是url:

我还必须将“php_pdo_sqlsrv_7_ts_x64.dll”文件加载到文件夹中 C:/wamp64/bin/php/php7.0.10/ext

并添加

extension=php_pdo_odbc.dll
extension=php_pdo_sqlsrv_7_ts_x64.dll
到php.ini文件


这是针对Cakephp 3.55项目的

Windows 10不适合开发
.htaccess
已经失控。我研究PHP已经有一段时间了,但假设过去几年情况没有太大变化,那么二进制版本就会出现问题。你说你用32位的PDO驱动程序实现了它你的运行时编译器是什么?可能是Visual Studio出了问题。@WhoiseEarth—不是真正的工作—只是php的“可查找”——这意味着当我运行phpinfo()函数时,这些扩展现在已列出。或者,我也无法使用64位版本的php在我的机器上显示这些扩展。看起来我在这台计算机上确实有一个Visual Studio版本,但我遇到的问题是我无法在Windows 10上安装这些功能所需的驱动程序。我知道它没有回答问题-但我们最终放弃了Windows 10 WAMP环境,使用了实际的IIS托管,现在可以连接到数据库没有问题(甚至使用PHP),通过下载Microsoft SQL Server Management Studio,我能够从Windows 10计算机上测试连接,我希望能够安装任何潜在的依赖项,使PHP也能够连接。。。但事实并非如此。无论如何-只是一个更新,谢谢你的评论-如果有人能成功地从Windows10连接到SQLServer2008并写下它,我相信它会帮助别人。