Declare @Id Int                               
Select @Id = Id From sysobjects Where Name = 'History_TmpDrugH'
if  NOT EXISTS(SELECT * FROM syscolumns WHERE id = @Id and Name = 'TotPriceDaryafti')
  Alter table History_TmpDrugH Add TotPriceDaryafti MONEY NULL
  
Select @Id = Id From sysobjects Where Name = 'History_TmpDrugH'
if  NOT EXISTS(SELECT * FROM syscolumns WHERE id = @Id and Name = 'TotPriceAfzayandeh')
  Alter table History_TmpDrugH Add TotPriceAfzayandeh MONEY NULL

Select @Id = Id From sysobjects Where Name = 'History_TmpDrugH'
if  NOT EXISTS(SELECT * FROM syscolumns WHERE id = @Id and Name = 'TotPriceKahandeh')
  Alter table History_TmpDrugH Add TotPriceKahandeh MONEY NULL