I’m profiling my application (Analyze -> Launch Performance Wizard…) and am looking at the Tier Interactions view which shows how long the application spends on database calls.
I’ve got one line which shows:
[myDb].[sys].[sp_procedure_params_100_managed]
called 73 times.
What’s going on?
It sounds like you’re using Enterprise Framework, and it sounds like EF is making a boatload of “DiscoverParameters()” calls:
Enterprise library caching parameters on stored procs?
Here’s one possible workaround (from the above link):
http://davidhayden.com/blog/dave/archive/2006/11/03/CachingStoredProcedureParameters.aspx