TABLE HINT NOEXPAND
Specifies that any indexed views aren't expanded to access underlying tables when the query optimizer processes the query.
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
WITH ( NOEXPAND )
Work example
A measured query issue may justify testing TABLE HINT NOEXPAND against the optimizer's default choice.
Capture the current plan, rows, reads, and elapsed time. Change one hint in a test copy and compare the same parameter values.
Check your work TABLE HINT NOEXPAND. The intended plan behavior for TABLE HINT NOEXPAND is visible and the result rows are unchanged across the comparison.
Open Microsoft Learn for full syntax, permissions, and details for your version.