Home Forums Article Discussions Article Discussions by Author Discuss Content Posted by Alex Grinberg Self Eliminated Parameters RE: Self Eliminated Parameters
laperrej
SSC Journeyman
Points: 94
More actions
October 9, 2006 at 9:24 pm
#664902
Please look again . The code I posted does an index scan on the City index. The primary key is CustomerID. The statistics must tell SQL Server that scanning the City index to find CustomerIDs is cheaper than doing a full table scan.