Declare @Id Int                               
Select @Id = Id From sysobjects Where Name = 'TblSms'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'ServiceId')
  Alter Table TblSms Add ServiceId int NULL