Msg 7999, Level 16, State 10, Line 1
Could not find any index named ‘%1!’ for table ‘%2!’.
This error message is raised, when SQL Server cannot find the specified index on that table.
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 specification of that index must be corrected. The index on that table must exist.
All versions of SQL Server.
CREATE TABLE t
CREATE NONCLUSTERED INDEX IX_t_c1
WITH (FILLFACTOR = 80,
DROP_EXISTING = ON);
In the above example, the specification DROP EXISTING = ON raises the error, because the index does not exist at this point in time.