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


