freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
[freetds] PHP, PDO dsn-less connection to MSSQL 2k8 in CentOS
- From: Celso Fontes <celsowm AT gmail.com>
- To: freetds AT lists.ibiblio.org
- Subject: [freetds] PHP, PDO dsn-less connection to MSSQL 2k8 in CentOS
- Date: Wed, 28 Mar 2012 18:00:03 -0300
Hi everyone !
Can someone help me with PHP, PDO dsn-less connection to MS-SQL 2008
in Cent OS, please?
code:
$dsn = "FreeTDS;Server=10.x.x.x;Database=mydb;Uid=user;Pwd=password";
$pdo = new PDO("odbc:Driver=$dsn",
"dbuser",
"password"
);
error:
SQLSTATE[IM002] SQLDriverConnect: 0 [unixODBC][Driver Manager]Data
source name not found, and no default driver specified
thanks,
celso
- [freetds] PHP, PDO dsn-less connection to MSSQL 2k8 in CentOS, Celso Fontes, 03/28/2012
Archive powered by MHonArc 2.6.24.