Hi all,
I am trying to connect to SQL Server DB Using ODBC Connection.
I am authorized to access the DB on Windows Authentication Login.
I set up my ODBC and tested it and worked fine.
But, when i tried to access it with PHP using ODBC, i got the following error:
[QUOTE]
Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user ‘(null)’. Reason: Not associated with a trusted SQL Server connection., SQL state 28000 in SQLConnect in C:wampwwwRMStest_connect.php on line 17
Connection Failed:
And my Connection Code is as follows:
[code=php]
$conn=odbc_connect(“RMS”,”,”);
if (!$conn)
{
exit(“Connection Failed: ” . $conn);
} else {
echo “connected successfully<br/>”;
}
Any idea ??