in reply to Mysterious null-padding

I see you've also sent this to the dbi-users list and I've answered there. In case you see this first.

To help identify the problem could you please provide:

DBI version DBD::ODBC version

Assuming you have recent DBI and DBD::ODBC could you set DBI_TRACE=DBD=x.log then rerun your code e.g.,

set DBI_TRACE=DBD=x.log perl

It should produce DBD::ODBC specific output in x.log that will help me identity the problem. There is no need to send the log to the list.

If this produces nothing in x.log you've probably got an older DBI in which case use:

set DBI_TRACE=15=x.log perl