Why the SQL Server FORCESCAN hint exists

Posted on SQL Server Central See other posts from SQL Server Central
Published on Fri, 15 Aug 2014 06:00:00 UT Indexed on 2014/08/20 10:28 UTC
Read the original article Hit count: 179

Filed under:

It is often generalized that seeks are better than scans in terms of retrieving data from SQL Server. The index hint FORCESCAN was recently introduced so that you could coerce the optimizer to perform a scan instead of a seek. Which might lead you to wonder: Why would I ever want a scan instead of a seek?

sqldeveloperbundle 12 must-have SQL Server tools
The award-winning SQL Developer Bundle contains 10 tools for faster, simpler SQL Server development. Download a free trial.

© SQL Server Central or respective owner