Hi,
I am trying to connect to SQL-Server DB from my application. It is not connecting.
I am able to connect to the DB through SQL-Server Management Studio with same login details.
I am using SQL-Server 2008.
Following is the DB component from my Yii config file -
'db'=>array(
'connectionString' => 'sqlsrv:server=hostname;database=dbname',
'username' => 'user',
'password' => 'password'
),
I am getting the following error -
CDbConnection failed to open the DB connection: SQLSTATE[IMSSP]:
The given attribute is only supported on the PDOStatement object.
I have googled and found at many places that emulatePrepare can cause this. But I am already not using that.
Can anybody help…