
IF EXISTS(SELECT 1 FROM sys.views  WHERE object_id = OBJECT_ID(N'[dbo].[V_GLB_AGEND_LOJA_TENTACLE]'))
    DROP VIEW [dbo].[V_GLB_AGEND_LOJA_TENTACLE];
GO

CREATE VIEW [dbo].[V_GLB_AGEND_LOJA_TENTACLE]
AS
SELECT
	CD_AGEND,
	DS_AGEND,
	TP_AGEND,
	PRZ_AGEND,
	HR_AGEND,
	DS_MOTIVO_AGEND,
	CD_USU,
	DT_CAD,
	DT_ULT_ALT,
	QUERY_AGEND
from GLB_AGEND_LOJA

