Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Microsoft Access Database

by matija (Priest)
on May 08, 2004 at 18:37 UTC ( [id://351743]=note: print w/replies, xml ) Need Help??


in reply to Microsoft Access Database

DBI and DBD::ODBC would seem to be the most appropriate combination for that task.

Replies are listed 'Best First'.
Re: Re: Microsoft Access Database
by Errto (Vicar) on May 09, 2004 at 01:32 UTC
    I was about to post and say that while DBD::ODBC is preferable from a programming standpoint, it has the inconvenience that it requires you to setup an explicit DSN in your ODBC Data Sources area. But I would have been wrong! To quote from the POD:
    Example (using MS Access): my $DSN = 'driver=Microsoft Access Driver (*.mdb);dbq=\\\\cheese\\g$\\perltest.mdb'; my $dbh = DBI->connect("dbi:ODBC:$DSN", '','') or die "$DBI::errstr\n";

    Obviously, the usual caveats about using Access programmatically apply (it's a single user database so watch out for threading and locking issues, it should be located preferably on the same machine as the application or at least within the same LAN, etc). I had the experience of trying to programmatically fetch data from .MDB files on machines halfway across a large corporate Intranet. It wasn't pretty.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://351743]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found