Unindexed column used by Query Optimiser

Can someone please tell me how I can extract Unindexed columns used by Query Optimiser. My understanding is that the query optimiser creates a temporary index for colums which ideally would have been indexed. I would like to gather info on these indexes and possibly create permanent indexes for some of temporarily created indexes. Thanx
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh RetnakaranDatabase AdministratorCommented:
The query optimizer creates some lookup tables for those columns referenced in the where clause, using any available indexes in the table. You can see this in the Query execution plan as 'Bookmark Lookup'
Why wont you use Index tuning wizard to create indexes, statistics and optimize the quries.
Scott PletcherSenior DBACommented:
>> My understanding is that the query optimiser creates a temporary index for colums which ideally would have been indexed. <<

Yes, SQL will create its own statistics, which appear as an index in system tables.

The "index" name begins with "_" (underscore), so to find them all, assuming you don't name your own indexes beginning with an _:

select left(object_name(id), 50) AS [Table Name],
    parsename(replace(substring(name, 2, 200), '_', '.'), 2) AS [Column Name With Stats]
from sysindexes
where name like '~_%' ESCAPE '~'
order by 1, 2

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.