
IF NOT EXISTS ( SELECT NAME FROM SYS.COLUMNS WHERE  NAME = 'FLAG_VLR_ICMS_DESONERADO_DESCONTO' AND OBJECT_NAME (OBJECT_ID)= 'EST_NF_ENT'  )
BEGIN 
	ALTER TABLE EST_NF_ENT ADD FLAG_VLR_ICMS_DESONERADO_DESCONTO TINYINT 
END 