Press "Enter" to skip to content

Forcing Indexed View Usage

Randolph West explains how you can force SQL Server to use an indexed view rather than its underlying tables:

The problem was that the plan was doing a table scan on the underlying table, and not using the indexes I had carefully crafted.

I had even created a second non-clustered index to try and make sure it was a proper covering index for the query.

Read on to see how Randolph solved the problem.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.