You are here: Re: Pear and ODCB Access DSNs? « PHP Programming Language « IT news, forums, messages
Re: Pear and ODCB Access DSNs?

Posted by Manuel Lemos on 09/14/05 01:13

Hello,

on 09/13/2005 04:46 PM David said the following:
> Having issues with a Pear DSN for odbc Microsoft access. The Manual
> is not too helpful and the best one I can find is
>
> odbc///map
>
> where map is the ODBC DSN name.
>
> Or does one need to create a DSN string like
>
> dbc(access)://tcp()driver=Microsoft Access Driver
> (*.mdb);dbq=C:\\htdocs\\map.mdb"
>
> Both do not work and result in a "not found" error.
>
> Also, this works with the PHP ODBC commands, so I know that the DSN is
> correctly set up

I don't know about PEAR DB because I do not use it, but you can use
Metabase PHP database abstraction package that has an MS Access driver
via ODBC that lets you connect to Access databases by specify the ODBC
DNS as the User argument of Metabase connection setup:

http://www.phpclasses.org/metabase


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация