IF EXISTS
(
    SELECT 1
    FROM SYS.VIEWS
    WHERE NAME = 'V_EST_PROD_PRECO_CONV_LINHA_EST_ARV_MERC_LINHA_TENTACLE'
)
    BEGIN
        DROP VIEW V_EST_PROD_PRECO_CONV_LINHA_EST_ARV_MERC_LINHA_TENTACLE;
    END;
GO
CREATE VIEW V_EST_PROD_PRECO_CONV_LINHA_EST_ARV_MERC_LINHA_TENTACLE
AS
     SELECT CD_EMP,
            CD_CTR,
            CD_ARV_MERC_LINHA,
            PERC_DESC,
            PERC_DESC_CRM,
            GETDATE() AS DT_HR_CARGA
     FROM EST_PROD_PRECO_CONV_LINHA_EST_ARV_MERC_LINHA;