Perdonad, el mensaje anterior no tenia el codigo correctamente escrito.
SET NUMERIC_ROUNDABORT OFF
GO
SET
ANSI_PADDING,ANSI_WARNINGS,CONCAT_NULL_YIELDS_NULL,ARITHABORT,QUOTED_IDENTIF
IER,ANSI_NULLS ON
GO
CREATE VIEW dbo.DV WITH SCHEMABINDING
AS
SELECT Numero, MAX(Valor) AS MaxValor, Count_big(Numero) as total
FROM dbo.DP
GROUP BY Numero, Valor
GO
CREATE UNIQUE CLUSTERED INDEX En_Numero ON dbo.DV (Numero)
GO
ERROR:
Cannot index the view 'dbo.DV'. It contains one or more disallowed
constructs.
Muchas gracias de antemano
Salu2!!
Daniel R.
Leer las respuestas