DECLARE @Id INT;
SELECT @Id = id
FROM sysobjects
WHERE name = 'ExclusiveInsuranceCode';
IF NOT EXISTS
(
    SELECT *
    FROM syscolumns
    WHERE id = @Id
          AND name = 'HasTTAC'
)
    ALTER TABLE ExclusiveInsuranceCode ADD HasTTAC BIT NULL;


Select @Id = Id From sysobjects Where Name = 'TaminPrescription'
IF NOT EXISTS(SELECT * FROM syscolumns WHERE id = @Id and Name = 'IsPaper')
ALTER TABLE  TaminPrescription ADD IsPaper BIT DEFAULT(0)