From: [EMAIL PROTECTED]
> If MSSQL Server hasn't diverged too far from being a derivative of
> Sybase, you would trap those messages in an error or a message handler
> - but that only works in sybperl and DBD::Sybase AFAIK. I don't know
> how you would get to the those callbacks in ODBC. HTH somewhat. --
> Matt
I tried to get them from the errors but they do not seem to be there.
This is what I tried:
use DBI;
my $db = DBI->connect('dbi:ODBC:jobodbc2', 'xxxx', 'xxx',
{PrintError => 0,RaiseError => 1,LongReadLen => 65536});
my $rows = $db->do(q{DBCC CHECKDB ('jobviper')});
$db->disconnect();
print "ROWS: $rows\n";
print "ERROR: ".$db->errstr."\n";
No exception raised, nothing in errstr :-(
Jenda
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery