2016-07-13 5 views
0

WAMPSERVER 2.5 개발 서버가 있습니다. PHP 5.512를 실행 중입니다.WAMPSERVER 2.5에서 SQL 서버의 데이터베이스에 연결

실제 SQL Server에 연결하려고합니다. 나는 설치 및 버전 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)); 

?> 

나는 다음과 같은 오류 받고 있어요 :이 지정된 link 그냥 드라이버로 다시 저를 필요

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))

을 다운로드 페이지. 내가 도대체 ​​뭘 잘못하고있는 겁니까?

+1

[SQL Server 용 Microsoft ODBC 드라이버 11] (https://www.microsoft.com/en-us/download/details.aspx?id=36434) – RiggsFolly

+0

을 설치 했습니까? @ RiggsFolly - 나는 그렇지 못했다. 오류 메시지의 제공된 URL이 잘못되어 나를 버렸다. – BFWebAdmin

답변

관련 문제