Sam,

If this is Windows, ensure you are using a System DSN.
If this is *nix, ensure you have an ODBC driver installed and the odbc.ini
file pointed to via a putenv().

Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software  http://www.openlinksw.com
Universal Data Access & Data Integration Technology Providers

> -----Original Message-----
> From: Berthelot [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 07, 2002 11:57 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] odbc and access
>
>
> I want to connect to an access database via a dsn.
> Here is the code:
>
> <?php
>      $db_link = odbc_connect("tatoo", "", "");
> ?>
> And I got the following error:
> Warning: SQL error: [Microsoft][Gestionnaire de pilotes ODBC] Source de
> données introuvable et nom de pilote non spécifié, SQL state IM002 in
> SQLConnect in C:\Inetpub\wwwroot\php\first.php on line 11
>
> I know it's written in french... sorry: that mean that the driver manager
> can't find the data source but my dsn is correct.
> Anyone can help me ?
>  thanx.
>             sam
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to