USE DD_ECM

IF NOT EXISTS(SELECT 1 FROM sys.columns 
          WHERE Name = N'ACTIVE'
          AND Object_ID = Object_ID(N'dbo.TBCUST_JOBRUNNER_QUERY'))
BEGIN
    -- Column Exists
	ALTER TABLE TBCUST_JOBRUNNER_QUERY ADD ACTIVE BIT NOT NULL DEFAULT 1
END
GO