Is there a way to avoid index scan in "Case" statements?

  • Is there a way to avoid index scan in "Case" statements? I have creating a covering index, still does clustered index scan..why?

  • Post the query, post the indexes

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • because your covering index does nt meet the requirement of the optimizer

    Paste or attach the Actual or Execution plan of that query

    Regards,
    Syed Jahanzaib Bin Hassan
    BSCS | MCTS | MCITP | OCA | OCP | OCE | SCJP | IBMCDBA

    My Blog
    www.aureus-salah.com

Viewing 3 posts - 1 through 3 (of 3 total)

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