私はWAMPSERVER 2.5開発サーバーを持っています。 PHP 5.512を実行しています。WAMPSERVER 2.5からSQLサーバー上のデータベースに接続
ライブSQLサーバーに接続しようとしています。私がインストールされたバージョン32 filesを活性化し、次のコードを使用しました:
<?php
$link = sqlsrv_connect('obscured_ip:obscured_port', array('Database'=>'obscured_database','UID'=>'obscured_uid', 'PWD'=>'obscured pwd'));
if (!$link)
die(print_r(sqlsrv_errors(), true));
?>
を私は次のエラーを取得しています:
Array ([0] => Array ([0] => IMSSP [SQLSTATE] => IMSSP 1 => -49 [code] => -49 2 => This extension requires the Microsoft ODBC Driver 11 for SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712 [message] => This extension requires the Microsoft ODBC Driver 11 for SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712 ) 1 => Array ([0] => IM002 [SQLSTATE] => IM002 1 => 0 [code] => 0 2 => [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified [message] => [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified))
が指定linkは、ちょうど戻ってドライバーに私を取りますダウンロードページ。私は間違って何をしていますか?
[SQL Server用Microsoft ODBCドライバ11](https://www.microsoft.com/en-us/download/details.aspx?id=36434) – RiggsFolly
をインストールしましたか? @ RiggsFolly - 私は持っていなかった - エラーメッセージの提供されたURLが間違っている、私を捨てた。 – BFWebAdmin