Error Message:
Msg 307, Level 16, State 1, Line 1
Index ID %d on table ‘%.*ls’ (specified in the FROM clause) does not exist.
Severity level:
16.
Description:
This error message appears when you try to specify an index that does not exist in an index hint.
Consequences:
The T-SQL statement can be parsed, but causes the error at runtime.
Resolution:
Error of the Severity Level 16 are generated by the user and can be fixed by the SQL Server user. The index must exis, before it can be used in the index hint.
Versions:
All versions of SQL Server.
Example(s):
SELECT *
FROM Northwind.dbo.Orders
WITH (Index=255)
Remarks:
In the above example we try to use an index on the Northwind.dbo.Orders table with the id of 255. Because no such index exists, the error is raised.