ODBC error
| From: | Todd Cary | Date: | Thu, 06 Jul 2000 17:20:25 +0000 |
| Subject: | ODBC error | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-910@lists.php.net to get a copy of this message | ||
If I execute the following PHP 4 code, I get the list error:
<?php
$user="SYSDBA";
$password="masterkey";
$host="acct_odbc";
echo "I am before the connect";
$MyOdbc=odbc_connect($host,$user,$password);
echo "I am after the connect";
?>
Error:
I am before the connect
Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name
not found
and no default driver specified, SQL state IM002 in SQLConnect in
c:\inetpub\wwwroot\db_odbc.php on line 6
I am after the connect
With other DBMS's, the Data Source Name works fine. What am I missing?
Todd
--
Todd Cary
Ariste Software
todd@aristesoftware.com