in reply to DBD Sybase and declare

In what way doesn't it work? What are the error messages? I would normally use do for something like this (and I'd also set an error handler - ala DBD::Sybase docs):

$dbh = DBI->connect(...); $dbh->{syb_err_handler} = \&err_handler; $dbh->do($sql); $dbh->disconnect;

-derby