在查询分析器中执行SQL如何实现回滚?
有一些修改表字段的语句,想实现在任一条修改出错时回滚的效果
--1、增加问题表dbo.ISS_question字段qNumsOfRow:纵向0 横向>0
alter table dbo.ISS_question add qNumsOfRow int null
--初始化该字段
update dbo.ISS_question set qNumsOfRow = 0 where qNumsOfRow is null
--2、增加问题表dbo.ISS_question分页描述字段nextpageinfo
alter table dbo.ISS_question add nextpageinfo varchar(200) null
--3、增加问卷表dbo.ISS_app是否针对被评对象字段isLimitObj:0否1是
alter table dbo.ISS_app add isLimitObj smallint null
--初始化该字段
update dbo.ISS_app set isLimitObj = 0 where isLimitObj is null
请高手们写出具体代码哦~~~