Thanks for your answer but I think there is a misunderstanding ; I’m not trying to connect to a my-SQL DB but a MS-SQL DB. I’ve 3 connections on differents mySQL DB which work fine, this the MS-SQL connection which cause problem.
Does anyone create a MSSQL connection under a Linux environnement ? which php(v5) driver should be used ?
to use ms-sql driver with PDO on linux You should instal dblib driver (pdo_dblib extension).
Yarro
well, and what else? which type of dbdriver should be written in db config? just 'mssql'? and what type of extension I need? I found the only 'mssql' extension, but it contains no items!
I've finally reinstall the pdo_dblib extension by an other way and now I can do some request on my remote host MS-SQL DB.
kvl : I do not completely understand your question, which dsn ? You can see i my first post in this topic the connectionString I've used to made it working.
Does your pdo dblib extension well loaded when you do phpinfo ? See section PDO, should be like it :
kvl : I do not completely understand your question, which dsn ? You can see i my first post in this topic the connectionString I've used to made it working.
Does your pdo dblib extension well loaded when you do phpinfo ? See section PDO, should be like it :
PDO drivers : dblib, mysql, odbc
Sorry, I was unattentive when reading your first post.
I never used dblib and I work locally at WinXP, but I'll try it, thanks!
Swann, is your mssql connection able to read and write Unicode? I am using debian, Yii, and mssql. I am not able to read and write with Unicode characters. The query returns "?" where the Unicode characters are. The same happens when I try to save. If I switch to MySql, I am able to read and write Unicode with no problems. Do you have any ideas?