June 28, 2002 at 10:44 am
For some reason the optimizer is not using my clustered index.
I am trying to specify a HINT to force it to but have been unable to find the correct syntax.
Table: CFT
column= member_id
index name= idx_mem
June 28, 2002 at 12:11 pm
SELECT <col1>, <col2>, etc..
FROM <table1> WITH (INDEX(<idx1>))
WHERE <condition clause>
SELECT name
FROM employee WITH (INDEX(idx_name))
Hope this helps. I have run into problems where the hint causes an error with an ADO application.
You may also want to update your statistics for the table with a sample of 50% and then try a FULLSCAN.
"Keep Your Stick On the Ice" ..Red Green
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy