Performance issue

  • Hi,

    I'm facing an unusual performance issue on SQL Server 2000.

    I'm running a query without using any variable, just using explicit values on the where clause and the query runs in 2 seconds.

    When I try to run using variables, the performance is very poor, running in 2 minutes. I checked the execution plan and they are different.

    Can you guys help me out with this?

    I'll send the execution plan and the IO Statistics on the next post.

    Thanks

  • Take a look for "parameter sniffing" online. Gail Shaw's blog has a great article on it. (Blog URL is http://sqlinthewild.co.za/)

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • Ok, I'll check the article!

    Thanks for the reply!

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

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