Olaf Doschke
Programmer
This is taken from the Filtered Index Design Guidelines:
It raises Error 156, Level 15, Status 1, Line 3: Incorrect Syntax Near the keyword 'WHERE'.
According to the Syntax for CREATE INDEX it's okay. What could be the problem?
(SQL Server 2005)
Code:
CREATE NONCLUSTERED INDEX FIProductAccessories
ON Production.Product (Name, ListPrice)
WHERE ProductSubcategoryID >= 27 AND ProductSubcategoryID <= 36;
GO
It raises Error 156, Level 15, Status 1, Line 3: Incorrect Syntax Near the keyword 'WHERE'.
According to the Syntax for CREATE INDEX it's okay. What could be the problem?
(SQL Server 2005)