Brian Sherwin's Blog

Moving at the Speed of .Net
posts - 98, comments - 62, trackbacks - 30

My Links

News

Twitter












Tag Cloud

Archives

Links

Watch your procedure cache when using parameters

Dan Guzman had an enlightening post on how SQL server caches ad-hoc queries when using inline parameters.  Basically the gist is that if your values for any given paramter changes you get variability in you cached procedure.  However, if you specify the SqlDbType when adding your parameters, you can avoid this whole problem.

Technorati Tags:
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Thursday, February 21, 2008 5:30 PM |

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: