Wednesday, January 2, 2013

Database Connection MS SQL 2012 With CakePHP 2.X

I try to make connection with my local ms sql db with this settings 
public $default = array(
'datasource' => 'Database/Sqlserver',
'persistent' => false,
'host' => 'localhost\SQLEXPRESS',
'login' => 'sa',
'password' => '123456',
'database' => 'ktmb',
'prefix' => '',
//'encoding' => 'utf8',
);

but it show error "Cake is NOT able to connect to the database.

Database connection "Sqlserver" is missing, or could not be created."

who can help me... 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: