Forum Moderators: coopster
I'm trying to connect to a MSSQL Server (2005 Express) through PHP. I understand that the mssql_connect() and the php_mssql.dll are old and shouldn't be used, so the next best thing is PDO's MSSQL extension. It's a pain, and that doesn't seem to work either. So then I've gone and got PDO's ODBC extension and am trying to set up a DSN for the connect, but I can't figure it out, is this right:
new PDO('odbc:database=somedb;UID=someuid;PWD=somepwd;DSN=myDSNConn');
Any ideas?