IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME ='FLAG_NAO_GERAR_ARQ_SPED' AND OBJECT_ID =OBJECT_ID('EST_NF_SAI'))
    BEGIN
	   ALTER TABLE EST_NF_SAI ADD FLAG_NAO_GERAR_ARQ_SPED INT NOT NULL DEFAULT 0
    END