I'm modifying a Web application that currently creates Microsoft Access 2003 files, but also needs to create Access 2007 files.

I updated the connection string in the function in a perl module so it specifies '.accdb' files in addition to '.mdb' files. However, when I try to test the code to create an Access 2007 file, I see the following error message in a log file:

Describe failed during DBI::st=HASH(0x40f84d4)->FETCH(NAME,0) at lib/searchInstance.pm line 784.
Can't set DBI::HASH(0x40f84d4)->{NAME_uc}: unrecognised attribute name or invalid value at lib/searchInstance.pm line 784.

Here is line 784:

foreach my $i (0..$#{dst_info_sth->{NAME_uc}}) {

$dst_info_sth represents a database statement handle:
...
my $dst_info_sql = "SELECT * FROM $to";
...
my $dst_info_sth = $dst_dbh->prepare($dst_info_sql);
...


Any ideas/suggestions to resolve this would be greatly appreciated.

In reply to Using Microsoft Access 2007 with DBI by aroc725

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.