/****** Object:  View [dbo].[V_PAINEL_NFE_DANFE_NAO_ENCONTRADO_QTDE]    Script Date: 17/11/2018 11:00:00 ******/ 
IF EXISTS (SELECT * 
           FROM   SYS.VIEWS 
           WHERE  OBJECT_ID = 
      Object_id(N'[dbo].[V_PAINEL_NFE_DANFE_NAO_ENCONTRADO_QTDE]')) 
  DROP VIEW [dbo].[V_PAINEL_NFE_DANFE_NAO_ENCONTRADO_QTDE] 

GO
 
--SELECT * FROM V_PAINEL_NFE_DANFE_NAO_ENCONTRADO_QTDE	WITH (NOLOCK)
CREATE VIEW [dbo].[V_PAINEL_NFE_DANFE_NAO_ENCONTRADO_QTDE]  AS
SELECT COUNT(1) AS QTDE_DANFE_NAO_ENCONTRADO
FROM EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO