in reply to DBD Sybase and declare

As derby says that should work. However, without any error information it's really hard to figure out what you are doing wrong...

Michael