MSSQL work in Yii (Gii)

Dear All,

Warmest Regards.

At main.php i try to add command

‘db’=>array(

		'connectionString' => 'mssql:host=GWEB;dbname=YDev',


		'emulatePrepare' => true,


		'username' => 'mic',


		'password' => '123',


	),

/*

‘db’=>array(

		'connectionString' => 'sqlite:protected/data/testdrive.db',


	),

*/

I’m getting error

constant() [<a href=‘function.constant’>function.constant</a>]: Couldn’t find constant PDO::ATTR_EMULATE_PREPARES

Anyone have idea how to solved it?

If i used sqlite then it’s work fine for index.php?r=gii.

Thank you.

Regards,

Michelle

Dear All,

Thank you.

I have finally figure out the bug.

‘emulatePrepare’ => false,

Regards,

Michelle