DECLARE @Id AS BIGINT;
SELECT @Id = id
FROM sysobjects
WHERE name = 'TblQueue';
IF NOT EXISTS
(
    SELECT *
    FROM syscolumns
    WHERE id = @Id
          AND name = 'Position'
)
    ALTER TABLE dbo.TblQueue ADD Position TINYINT DEFAULT (0);

