INFO: If we got this far, we were able to create two statement handles. DBD::ODBC::st execute failed: [FreeTDS][SQL Server]Invalid cursor state (SQL-24000) at two_handles.pl line 34. FATAL: Unable to execute q2: [FreeTDS][SQL Server]Invalid cursor state (SQL-24000) at two_handles.pl line 34. Issuing rollback() due to DESTROY without explicit disconnect() of DBD::ODBC::db handle Driver=FreeTDS;ServerName=SqlServer;Database=FOOBAR at two_handles.pl line 34.