RE: [PHP-DB] odbc and access
| From: | Andrew Hill | Date: | Fri, 11 Jan 2002 20:58:44 +0000 |
| Subject: | RE: [PHP-DB] odbc and access | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15674@lists.php.net to get a copy of this message | ||
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:samuelberthelot@voila.fr]
> Sent: Monday, January 07, 2002 11:57 AM
> To: php-db@lists.php.net
> 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: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>