in reply to MSSQL Select to an array: error with selectcol_arrayref
According to the DBI documentation, you should call selectcol_arrayref on a database handle ($dbh), not a statement handle.
$dbh = DBI->connect( ... ) || die ...; @EasySetTableNames = @{$dbh->selectcol_arrayref($sqlStatement)};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: MSSQL Select to an array: error with selectcol_arrayref
by Olaf (Acolyte) on Dec 14, 2007 at 15:04 UTC | |
by pfaut (Priest) on Dec 14, 2007 at 15:45 UTC | |
by Olaf (Acolyte) on Dec 17, 2007 at 15:28 UTC |