Msg 307, Level 16, State 1, Line 1
Index ID %d on table ‘%.*ls’ (specified in the FROM clause) does not exist.
This error message appears when you try to specify an index that does not exist in an index hint.
The T-SQL statement can be parsed, but causes the error at runtime.
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.
All versions of SQL Server.
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.