delete vs4tsystem WHERE tsysname='SPWINAutoInprocessOnSave'
GO
insert into vs4tsystem (tsysid,tsysname,tsysvalue,tsysflag1) values (-1,'SPWINAutoInprocessOnSave',1,1)
GO
update vs4tsystem set tsysid=(select max(tsysid)+1 from vs4tsystem) where tsysid=-1
GO

delete vs4tsystem WHERE tsysname='SPWINAutoCloseOnApprove'
GO
insert into vs4tsystem (tsysid,tsysname,tsysvalue,tsysflag1) values (-1,'SPWINAutoCloseOnApprove',1,1)
GO
update vs4tsystem set tsysid=(select max(tsysid)+1 from vs4tsystem) where tsysid=-1
GO