Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have an asp.net application which calls a sql server stored procedure and gets the result in my asp.net form.

sometimes request takes long time for the result to come and result in time out.

If I modify the SP, save it and run application it gives me the result in specific timing.

what cause my asp.net application to behave properly after saving/running sql SP
(without changing)


Thanks !!
Hemant Thakar
Posted
Updated 30-Jan-14 23:25pm
v2
Comments
[no name] 31-Jan-14 5:31am    
What is the SP..??what you are modifying..??please share your SP and clear in detail.
Hemant Thaker 31-Jan-14 6:59am    
hi,
SP fetches some data and display in asp.net form
I didn't modify the sp, just re-run that in sql server itself.
this re-run makes may page execute perfectly... thats it !!!
Tomas Takac 1-Feb-14 2:47am    
It sounds like wrong execution plan is cached. Try to find the parameter/value which is causing the SP to execute slowly and study the execution plan.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900