Declare @Id Int                               
Select @Id = Id From sysobjects Where Name = 'TblUseMind'
if  NOT EXISTS(SELECT * FROM syscolumns WHERE id = @Id and Name = 'Def_Flag')
  Alter table TblUseMind Add Def_Flag char(1) null

