CREATE TRIGGER [zscount] ON [dbo].[Character] after Insert as Update [Character] set [Character].zs_count=2From Inserted Where Inserted.zs_count=0 and [Character].accountid=inserted.accountid and [Character].name=inserted.name