Could not find any index named '%1!' for table '%2!'.

Error Message:
Msg 7999, Level 16, State 10, Line 1
Could not find any index named ‘%1!’ for table ‘%2!’.

Severity level:
16.

Description:
This error message is raised, when SQL Server cannot find the specified index on that table.

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 specification of that index must be corrected. The index on that table must exist.

Versions:
All versions of SQL Server.

Example(s):
USE tempDB;
GO
CREATE TABLE t
(
 c1 INT
)
GO
CREATE NONCLUSTERED INDEX IX_t_c1
    ON t(c1)
  WITH (FILLFACTOR = 80,
     DROP_EXISTING = ON);
GO

Remarks:
In the above example, the specification DROP EXISTING = ON raises the error, because the index does not exist at this point in time.

]]>

Leave a comment

Your email address will not be published.