Reputation: 81
Here is my connection string.
public $default = array(
'datasource' => 'Database/Sqlserver',
'persistent' => false,
'host' => 'SAI-PC\\SQLEXPRESS',
'login' => 'sa',
'password' => '123',
'database' => 'SFAC_Connectmp',
'prefix' => '',
//'encoding' => 'utf8',
);
Upvotes: 0
Views: 1433
Reputation: 2776
Could it be the host name?
Try adding the port to the host with hostname:port
Is the server local? Does it work with localhost? Is it on the local network? Does it work with it's LAN ip?
Have you installed/enabled the php sqlsrv driver?
Upvotes: 1