Stored Proc = SLOW, Query Analyzer Code = FAST

  • I have a stored proc that runs about 40 seconds, while the same code in QA runs in 2 seconds. The execution statistics show millions of logical reads in the sp, but very few in the QA version. There is one parameter input and one temp table in the code. How can I make what seems like a bad execution plan in the sp run like the one that QA came up with? I can post the code if needed. Running SQL7 on an NT box.

  • Try to recompile the sp. It could be result of old execution plan

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

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