never cache @@TRANCOUNT, as this could cause transactions not to be committed properly