in reply to Re: DBI continuing execution after a warning/informational message
in thread DBI continuing execution after a warning/informational message

i was able to make it work , based on your comment. i got error
Can't locate object method "odbc_more_results" via package "DBI::st"
when i used
while($sth->odbc_more_results) { print "Restore outputs $DBI:errstr \n"; }
googling, i got an option for prepare statement.
my $sth = $db->prepare( $sql, { odbc_exec_direct => 1})
this seems to keep the connection on (basically to use with temporary table creation on prepare statement, otherwise temp tables are unaccessable)
thanks for your hint, which solved my problem.

Replies are listed 'Best First'.
Re^3: DBI continuing execution after a warning/informational message
by mje (Curate) on Jan 20, 2010 at 16:28 UTC

    That was a typo on my part - it should have been:

    while($sth->{odbc_more_results}) { ; # }

    sorry