I have an ASP.NET page (Webforms) that is loading slowly, and from looking at the code it looks like the source comes from far too many round-trips to the database. A database call in an inner loop is executing around 8000 times, when we should require about an order of magnitude fewer database calls.
To verify that my code changes have the intended effect, what's the most straightforward way of logging/observing the number of database calls made during rendering of a single Page?
Edit: Our development database for this project is not currently configured to allow me to run SQL Server Profiler ("You must be a member of sysadmin fixed server role or have the ALTER TRACE permission"). I'll have a conversation with the DBA as to whether or not we can get this permission enabled for us in Dev, but in the mean time, I'm curious about any alternatives that don't require sysadmin privileges.