October 18, 2005 at 1:43 pm
Good afternoon, I have a question regarding how SP's are run. I created an SP that runs a piece of simle T-SQL. The T-SQL runs as expected, but the SP times out. I have attached screenshots of the SP & it's execution plan. The same for the T-SQL. Any help would be much appreciated. Thanks - John
T-SQL
SP
October 18, 2005 at 2:56 pm
Search on the topic "parameter sniffing"
October 18, 2005 at 7:57 pm
Are you sure everybody can see images from your local folder?
_____________
Code for TallyGenerator
October 19, 2005 at 6:52 am
I can't see the images...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2005 at 8:02 am
Thanks all, I was able to get it worked out, I created 2 additional SP's and call them from within the main SP using the same logic. In the 2 "sub" SP's I am using "WITH INDEX" option. - John
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply