I presume you are using DBD::ODBC? If not, I don't know.
Could you provide a trace: set DBI_TRACE=15=x.log then run program and x.log should contain trace.Don't post it here, it is probably too long. If possible pastebin it and if not send it to me at martin.ev...@easysoft.com.
Martin