DECLARE @Id AS BIGINT;
SELECT @Id = id
FROM tempdb.dbo.sysobjects
WHERE name = '##tmpSazman';


IF NOT EXISTS
(
    SELECT *
    FROM tempdb.dbo.syscolumns
    WHERE id = @Id
          AND name = 'AgeLimit'
)
   AND ISNULL(@Id, 0) <> 0
    ALTER TABLE ##tmpSazman ADD AgeLimit SMALLINT NULL DEFAULT (0);