FROM ... WITH ( table_hint )
constrains access method or locking for one table reference
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
table_or_view_name WITH ( <table_hint> [ [ , ] ...n ] )
Work example
A measured access or concurrency issue may call for a hint on one table reference.
Check the exact table scope and locking effect. Test with concurrent sessions and compare the actual plan.
Check your work FROM ... WITH ( table_hint ). Only the named table reference changes behavior and the intended rows remain the same.
Open Microsoft Learn for full syntax, permissions, and details for your version.