in reply to ODBC error message

Doubt its MS SQL server or DBI, both are pretty reliable. Have you tried "finishing" the DBI statement?

$statement->finish();
This will tell DBI at least, that you dont care about the rest of your results, and maybe release the connection. Without seeing your code though, not much we all can do but guess.

-stvn