Declare @Id Int                               
Select @Id = Id From sysobjects Where Name = 'Sahmiyeh'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'Saghf3')
  Alter Table Sahmiyeh Add Saghf3 Money Default(0)
  
Select @Id = Id From sysobjects Where Name = 'Sahmiyeh'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'Day_Mid2_3_Hfani')
  Alter Table Sahmiyeh Add Day_Mid2_3_Hfani Money Default(0)
  
Select @Id = Id From sysobjects Where Name = 'Sahmiyeh'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'Night_Mid2_3_Hfani')
  Alter Table Sahmiyeh Add Night_Mid2_3_Hfani Money Default(0) 
  
  