I have a stored procedure that works fine previously. It took 4 to 5 secs to get the results.
I didn\'t used this stored procedure for the past two months. When I call
You may have bad execution plan associated with that proc. Try this one
DBCC FREESYSTEMCACHE ('ALL') WITH MARK_IN_USE_FOR_REMOVAL;
You may also find this interesting to read http://www.sqlpointers.com/2006/11/parameter-sniffing-stored-procedures.html