Eagle_f90 has asked for the wisdom of the Perl Monks concerning the following question:
I though there was some way I could do something like this:$sth = $dbh -> prepare (qq~use FFImages~); $sth -> execute();
But I just get the error: [Microsoft][ODBC SQL Server Driver]Invalid cursor state (SQL-24000)(DBD: dbd_describe/SQLNumResultCols err=-1)$sth = $dbh -> prepare (qq~use FFImages select * from information_sche +ma.tables where table_catalog = 'FFImages' and table_type = 'Base Tab +le'~) or die "Could not prepair"; $sth -> execute() or die "$DBI::errstr";
2006-03-03 Retitled by planetscape, as per Monastery guidelines
Original title: 'Perl and DBI issues'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing databases in MSSQL and fetching more than one row of results at a time
by dorward (Curate) on Mar 02, 2006 at 08:01 UTC | |
|
Re: Changing databases in MSSQL and fetching more than one row of results at a time
by terce (Friar) on Mar 02, 2006 at 11:36 UTC | |
|
Re: Changing databases in MSSQL and fetching more than one row of results at a time
by jZed (Prior) on Mar 02, 2006 at 15:56 UTC | |
|
Re: Changing databases in MSSQL and fetching more than one row of results at a time
by Eagle_f90 (Acolyte) on Mar 02, 2006 at 17:14 UTC | |
by jZed (Prior) on Mar 02, 2006 at 19:31 UTC |