2016-03-24 30 views
2

我試圖通過PHP連接到服務器MSSQL在Windows 10,但我遇到了一些重大問題得到以下錯誤:PHP - 獲取MSSQL在Windows上工作10

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

我問爲SQL Server安裝Microsoft ODBC驅動程序11。但這種驅動程序與Windows 10兼容我已經安裝了PHP驅動程序PHP 7和PHP 5,無論是將工作而不會用於SQL Server的Microsoft ODBC驅動程序11,但這不是兼容Windows 10

有沒有人找到了一個方法呢?我試圖下載此:https://www.microsoft.com/en-US/download/details.aspx?id=36434

但它是與Windows不兼容10

回答

0

這並不容易找到,但是版本,你需要支持最新的東西和Windows 10是

MS ODBC驅動程序13

https://www.microsoft.com/en-us/download/details.aspx?id=50420

+1

我已經下載了這一點,但它是與Windows不兼容10 :(@DanFromGermany – Code

+1

釷anks for this @DanFromGermany,但我仍然收到相同的錯誤此擴展需要SQL Server的Microsoft ODBC驅動程序11。 – Code

+0

哈哈XD,對不起,我應該更清楚。我現在可以安裝驅動程序。但是我得到了PHP錯誤,說我沒有驅動程序。 – Code

相關問題