fix transactions on sql2000 Issue #23