Hello,
I have an sp that runs in less than a second if run from query analyzer, but if the same sp on the same db server with the same parameters is run from a web site or windows app it takes about 5 minutes to run. Other sp's run at the same speed whether called from the web site or windows app or query analyzer.
Does anyone have any ideas on why the same code runs at different speeds depending upon where it is called from?
Thanks,
Bill
I have an sp that runs in less than a second if run from query analyzer, but if the same sp on the same db server with the same parameters is run from a web site or windows app it takes about 5 minutes to run. Other sp's run at the same speed whether called from the web site or windows app or query analyzer.
Does anyone have any ideas on why the same code runs at different speeds depending upon where it is called from?
Thanks,
Bill