

Declare @Id Int                               
Select @Id = Id From sysobjects Where Name = 'sahmiyeh'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'OtherServices1')
  Alter Table sahmiyeh Add OtherServices1 money 
                            
Select @Id = Id From sysobjects Where Name = 'sahmiyeh'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'OtherServices2')
  Alter Table sahmiyeh Add OtherServices2 money 
                             
Select @Id = Id From sysobjects Where Name = 'sahmiyeh'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'OtherServices3')
  Alter Table sahmiyeh Add OtherServices3 money 

                              
Select @Id = Id From sysobjects Where Name = 'sahmiyeh'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'OtherServices4')
  Alter Table sahmiyeh Add OtherServices4 money 
