Declare @Id Int                               
Select @Id = Id From sysobjects Where Name = 'Tbl_OverUnder_percent_Kala'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'FactorType')
  Alter Table dbo.Tbl_OverUnder_percent_Kala Add FactorType TINYINT NULL


Select @Id = Id From sysobjects Where Name = 'Tbl_OverUnder_percent_Kala'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'StartTime')
  Alter Table dbo.Tbl_OverUnder_percent_Kala Add StartTime VARCHAR(5)


Select @Id = Id From sysobjects Where Name = 'Tbl_OverUnder_percent_Kala'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'EndTime')
  Alter Table dbo.Tbl_OverUnder_percent_Kala Add EndTime VARCHAR(5)


