stored procedure running slower than sql query

  • Thanks Chris, I had a same issue. It is resolved with your solution.

    Regards,
    Nitin

  • This worked for me. Thanks!

    One thing I thought was interesting though was that I had the same exact parameter names (@START_DATE, @END_DATE). Could these be some kind of pseudo-keywords tripping things up in the optimizer?

    - Peter

  • This worked for me!

    Added OPTION(Recompile) at the end of query in stored procedure.

    Thanks

    Vishwanath

Viewing 3 posts - 16 through 17 (of 17 total)

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