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