begin tran --開啓事務 commit tran --提交事務 rollback tran --回滾事務
這樣設置查詢分析器後,不小update和delete錯數據了,能夠用sql
rollback tran --回滾事務
肯定沒有錯誤了,則code
commit tran --提交事務