Index ID %d on table ‘%.*ls’ (specified in the FROM clause) does not exist.

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:

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.

  FROM Northwind.dbo.Orders
  WITH (Index=255)

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.


No comments yet... Be the first to leave a reply!

Software Reviews | Book Reviews | FAQs | Tips | Articles | Performance Tuning | Audit | BI | Clustering | Developer | Reporting | DBA | ASP.NET Ado | Views tips | | Developer FAQs | Replication Tips | OS Tips | Misc Tips | Index Tuning Tips | Hints Tips | High Availability Tips | Hardware Tips | ETL Tips | Components Tips | Configuration Tips | App Dev Tips | OLAP Tips | Admin Tips | Software Reviews | Error | Clustering FAQs | Performance Tuning FAQs | DBA FAQs |