How to measure SQL hits due to my application
Use case:
I'm working on a form in development environment and everything works fine. aqPerformance tells me everything is quick. I make a change in my form. aqPerformance still tells me everything is quick. Users suddenly report that everything has slowed down and the system is unusable and they want me to personally drive over to their offices and make coffee while they wait for the form to load. After testing, I find that the small change in my form suddenly added 200 SQL queries each time you move your mouse. This isn't a problem in production or our test servers, but the users are on a network with high latency. Each single SQL connection is quick, but it adds up.
Is there a way to monitor these SQL hits by, say, using profiler and profiling during the form load/ item select etc. then report back the amount of SQL queries ? I know developers could keep profiler open while developing the application, but sometimes it doesn't behave the same on you machine as on live and you want to know if something has dramatically changed. Also, if you could catch this before it gets to users that would save alot of fuel.