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.




Related Articles :

  • No Related Articles Found

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 |