I know, yet another question about using MS Access. :) I promise to be brief. :)

Currently I have developed an application under Linux in perl that accesses a Progress database on HPUX using the OpenLink product and DBI:ODBC. This connectivity works great! OpenLink has a request broker that runs as a daemon on HPUX that you connect to from DBI:ODBC on the Linux box. The request broker then invokes a client program that contacts the Progress database. After this connection has been established, the SQL is executed.

<shameless plug> OpenLink is a great application </shameless plug>

My co-worker has been suitably impressed by this solution and has challenged me to connect Perl to a MS-Access database. Based on a little perlmonks.org research, this question is common. However, most of the questions are from people using Perl under NT. That solution seems very straightforward.

However, I'm wondering if any astute monks have been able to transfer an Access *.mdb file to a Linux box and connect to it through DBI:ODBC. If this has been done, how was the DSN specified to define the *.mdb file location? I've only used DSN's where the database connection has been established over a network connection. Is specifying a filename in the DSN even possible?

I can handle the configuration of the ODBC component but the DSN part is really confusing me.

Thanks in advance!

P.S. - here's a little tidbit about calling those predefined queries or database views that are stored in the MS Access database.


In reply to Perl to MS Access with DBI:ODBC on Unix by fongsaiyuk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.