After following these instructions, I found my database was still giving me the following error:
Warning: odbc_connect() [function.odbc-connect]: SQL error: [unixODBC][FreeTDS][SQL Server]Unable to connect to data source, SQL state S1000 in SQLConnect in /var/www/testdatabase/stdFunctions.php on line 49
Couldn't connect to SQL Server database
This was due to my database code not passing the correct username and password. I had to edit the odbc_connect() line to read as follows:
odbc_connect("database", "DOMAIN\username", "password");
No comments:
Post a Comment