Why is the INDEX useless? How do you determine that? If it is useless then SQL Server would not use it. If you feel it is useless, just drop the index.
If you still want to force a table scan use With (Index(0)). This will force a clustered index scan if a clustered index exists or a table scan if there is no clustered index.
Example:
Select *
From TblEmployee With (Index(0))
Where EmpName Like 'smith%' Terry L. Broadbent - DBA
SQL Server Page:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.