SQL SERVER - Detecting non-indexed columns but used in WHERE clause

Posted by Vadi on Stack Overflow See other posts from Stack Overflow or by Vadi
Published on 2010-04-04T07:48:12Z Indexed on 2010/04/04 7:53 UTC
Read the original article Hit count: 361

How to detect a column included in WHERE clause but used in indexed?

Little Background:

Until the time the table has few number of records things will be okay, once it started having millions of records then index should be created for a column which is used in WHERE clauses in stored procs, inline queries etc.,

Since we have hundreds of stored procs and queries that often gets changed by the devs I wanted to have a automated way of identifying those columns that are used in WHERE clauses but not an index is created. How to do that in SQL SERVER 2008?

© Stack Overflow or respective owner

Related posts about sqlserver2008

Related posts about indexing