Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This is the code I am using to get the data:DBD::ODBC::st fetchrow_array failed: [Microsoft][ODBC Microsoft Access + Driver ring data, right truncated on column number 1 (summary) (SQL-01004)(DB +D: st_f h/SQLFetch (long truncated) err=1) at uab.pl line 23.
Any Suggestions? Thanks, Aspiring Monk$dbh = DBI->connect('dbi:ODBC:StockDB') || die "Error opening DB: $DBI +::errstr\n"; $sth = $dbh->prepare("SELECT NOTES FROM QTABLE"); $sth->execute() or die "Couldn't execute query: $DBI::errstr\n"; while (my @row = $sth ->fetchrow_array){ print "@row\n"; } $sth->finish();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting error when selecting from database
by Kanji (Parson) on Jun 12, 2002 at 22:29 UTC | |
by Anonymous Monk on Jun 12, 2002 at 22:31 UTC | |
|
Re: Getting error when selecting from database
by dree (Monsignor) on Jun 12, 2002 at 22:31 UTC | |
|
Re: Getting error when selecting from database
by DamnDirtyApe (Curate) on Jun 12, 2002 at 22:30 UTC | |
|
Re: Getting error when selecting from database
by ehdonhon (Curate) on Jun 12, 2002 at 22:33 UTC |