I connected the MS sql by ODBC(system DSN) ,but result wasnot correct. it prompted the data source was not founded. how can I do now ?
When I use MSSQL I set up an application role with an application name and password and connect using those
$conn = odbc_connect("DSNname", "app_name","app_pwd");
hth
to barand: I write the program as you .but don't slove the problem