IF  EXISTS (SELECT * FROM SYS.VIEWS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[V_PAINEL_NFE_EST_PED_CP_PENDENCIA_QTDE]'))
DROP VIEW [DBO].[V_PAINEL_NFE_EST_PED_CP_PENDENCIA_QTDE]    
GO
--SELECT * FROM V_PAINEL_NFE_EST_PED_CP_PENDENCIA_QTDE
CREATE VIEW V_PAINEL_NFE_EST_PED_CP_PENDENCIA_QTDE
AS
SELECT
	COUNT(*) AS QTDE_PED_CP_PENDENTE
FROM
	EST_PED_CP_PENDENCIA