index HINT

  • 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

  • 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 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply