2013-04-17 116 views
1

我的Windows機器上使用CakePHP 2.x和PHP 5.4.3(Windows 8,使用WAMP)。我必須連接其他mssql服務器,因爲我需要從那裏獲取一些數據。我已經試了很多方法來連接,但 錯誤信息始終是相同的:CakePHP 2.x MSSQL 2008連接

Error: A Database connection using "Sqlserver" was missing or unable to connect. 
The database server returned this error: Selected driver is not enabled 

Error: Sqlserver driver is NOT enabled 

我database.php中配置:

public $urniki = array(
    'datasource' => 'Database/Sqlserver', 
    'persistent' => false, 
    'host' => 'somehost.com', 
    'login' => 'user', 
    'password' => 'pass', 
    'database' => 'db', 
    'prefix' => '', 
    'encoding' => 'utf8', 
); 

任何想法如何連接呢?

+0

找到解決方案點擊:http:// robsphp。 blogspot.com/2012/09/how-to-install-microsofts-sql-server.html – Klemenko

回答