IF NOT EXISTS (SELECT *FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME ='TELE_EMPRESA_ENTREGA' AND  COLUMN_NAME = 'INTG_COD_IDET')
BEGIN 
	ALTER TABLE TELE_EMPRESA_ENTREGA ADD INTG_COD_IDET VARCHAR(50) COLLATE SQL_LATIN1_GENERAL_CP1_CI_AS CONSTRAINT DF_TELE_EMPRESA_ENTREGA_INTG_COD_IDET DEFAULT '' NULL;
END 