in reply to Query twice

I'm not familiar with Win32::ODBC, but what I see from your code would not allow you to re-use your connection simultaneously: the second call to SQL would seem to clobber the first one.

Is there no specific DBD module for your database? If not, DBD::ODBC could be used and DBI/DBD allows re-using one connection for multiple simultaneous queries as you can spawn many query-objects out of the same connection.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law