ODBC Connecting to SQL Database in PHP Error
09:51 18 Jul 2013

I have a php file with the proper information, and I cannot figure out why I cannot make an ODBC connection to my SQL Database?

I have two files and am trying to create a simple webpage that is connected to my database.

First File (odbc_vertices.php):

   

Second File (phptest.php):

   

   
   
   

   

   


  
      


      

   

   

However I'm receiving this error when I go to test the page:

Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'., SQL state 28000 in SQLConnect in odbc_vertices.php on line 4 Could Not Connect to ODBC Database!

I'm trying to figure out what should be changed in the odbc_vertices.php file for the connection to be successful. Any help would be appreciated

php sql connection odbc