/****** Object:  View [dbo].[V_PAINEL_NFE_DANFE_ERROS_GERACAO_DAR_IMPOSTO_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_ERROS_GERACAO_DAR_IMPOSTO_QTDE]')) 
  DROP VIEW [dbo].[V_PAINEL_NFE_DANFE_ERROS_GERACAO_DAR_IMPOSTO_QTDE] 

GO

--SELECT * FROM V_PAINEL_NFE_DANFE_ERROS_GERACAO_DAR_IMPOSTO_QTDE	WITH (NOLOCK)
CREATE VIEW [dbo].[V_PAINEL_NFE_DANFE_ERROS_GERACAO_DAR_IMPOSTO_QTDE] AS
SELECT COUNT(CD_CTR_ERROS) AS QTDE_ERRO_GERACAO_DAR
FROM EST_NF_ENT_DAR_ERROS_VALIDACAO