473,415 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,415 software developers and data experts.

Pear and ODCB Access DSNs?

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

Thanks

Sep 13 '05 #1
1 1768
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
Sep 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Analysis&Solutions | last post by:
Greetings: Crack open the beer, PEAR DB 1.6.0 is here! (Hey, I'm a bit giddy with excitement that my intense work during the past seven weeks has come to fruition.) For those unfamiliar with...
6
by: NotGiven | last post by:
My hosting company has pre-intalled PEAR in a directory out of the web directory (and not in php-includes). I've tried including the absolute /to/path/ in the requre statement but it does not...
9
by: Earl Partridge | last post by:
Windows XP, Frontpage 2000, IIS 5.1, Access 2000 When I attempt to open a connection to my database I get an error the page cannot be found... this on my local machine, using localhost. The page...
0
by: Matthew Wells | last post by:
Good morning... I have an Access front end that uses SQL Server linked tables. SQL Server uses Windows authentication. I have one Windows group that all Access users are a member of. I added...
2
by: Matthew Wells | last post by:
Good morning... I have an Access front end that uses SQL Server linked tables. SQL Server uses Windows authentication. I have one Windows group that all Access users are a member of. I added...
0
by: Lewt | last post by:
I am aware of the 'hack the registry' approach. This is just not a safe way to accomplish this on a user's PC. I need to do this the right way. Is there anyone -perhaps from Microsoft - out there...
9
by: Mitchell Vincent | last post by:
I would like to start a discussion of what everyone is using as an embedded application database with .NET - specifically VB.NET. The MSDE package is *far* to huge to be of any real use at over...
1
by: webguynow | last post by:
I've installed PEAR in my local area, on my shared host, under htdocs but I'm anticipating a number of issues. I'm forcing use of PHP5 with an .htaccess file, but by default the host runs ...
5
by: Jim Michaels | last post by:
I downloaded a PEAR module, but it came with this XML file and a PHP file. I figure I just include the PHP file somehow, but what do I do with the XML file?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.