Hi, I'm using the code, listed below, to access information from a Access database. It worked fine when the I had a text field that was limited to 50 characters, but I have since changed this column to be a memo field which holds unlimited characters. When I run the same script I get the following error message;
Fri Jul 27 10:04:15 2001 err, DBD::ODBC::st fetchrow_arrayref failed: Microsoft
ODBC Microsoft Access DriverString data, right truncated on column number 6 (
free_text) (SQL-01004)(DBD: st_fetch/SQLFetch (long truncated) err=1)
Does anyone know why I'm getting this and why is it trying to truncate the data? Many Thanks Chris Heres the code;
$sth = $dbh->prepare("select * from tasks where task_id = $id") or &dienice ("AssignProblem:Can't prepare to get problem report: " . $dbh- +>errstr ); $sth->execute or &dienice ("AssignProblem:Can't get problem report $id: " . $dbh +->errstr); while (@rows = $sth->fetchrow_array) { push(@task, @rows);

In reply to Failure to get a memo field from a database by chaskins

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.