Either make it a system-DSN, or a DSN for the user the CGI runs under. (Whatever it may be...) For the rest of the discussion, I'll assume use of DBI+DBD::ODBC, only...

You might try to use a DSN-less connection with a connection string for DBI, like:

dbi:ODBC:driver=Microsoft Access Driver (*.mdb);dbq=c:\full\path\to\da +tabase.mdb
The full path (required!) for the database must be using backslashes, not forward slashes, as a directory separator.

Oh, and the username/password must be given in the connect call, as 2nd and 3rd parameters — use empty strings if none.


In reply to Re: CGI login problem by bart
in thread CGI login problem by 8bstr8ct

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.