Re: question in ADODB
| From: | Philippe Saladin | Date: | Thu, 20 Feb 2003 07:39:47 +0000 |
| Subject: | Re: question in ADODB | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-25789@lists.php.net to get a copy of this message | ||
> I found the following code on the internet. I'd like to know that what I
> need to do, if I want to use the actually Access file with out the DSN,
how
> to use the Microsoft Jet?
> thx
>
> ---------------------- code --------------------------------
> include("adodb.inc.php");
> $db = NewADOConnection('mysql');
Look at the adodb manual : http://php.weblogs.com/adodb_manual
$db = NewADOConnection('access');
(Microsoft Access/Jet. You need to create an ODBC DSN)
or
$db = NewADOConnection('ado_access');
(Microsoft Access/Jet using ADO. Allows DSN-less connections. For best
performance, use an OLEDB provider.)
Regards,
Philippe