top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

DSN for MS SQL Server Express 2005 in PHP

+2 votes
448 views

I'm trying to connect to a MS SQL Server Express 2005 using PDO for ODBC, but I need the DSN string. I tried with:

$dsn = 'odbc:DRIVER={SQL Server};HOSTNAME=CCTPV608SQLEXPRESS;DATABASE=db_ibripos';

but it doesn't work, please help.

posted Nov 23, 2013 by Sumit Pokharna

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
answer Nov 23, 2013 by Abhay Kulkarni
Thanks, I found it:

$dsn = 'odbc:Driver=SQL Server;Server= CCTPV608SQLEXPRESS;Database=db_ibripos';
...