So I have started looking at some of the standard reports available with SSMS and in particular, the "server dashboard". One thing that caught my attention were the charts that referred to "adhoc" queries. I wondered how those were being defined, and as I expected, they are most likely those statements not in a stored procedure. This was answered inthis thread.
On a particular server Im interested in, this % value is well over 50% and the primary applications that interact with the databases on this system are Microsoft based products such as Dynamics and another commercial application which I know uses hundreds of stored procedures. Now, Im sure there are some sql statements being used, possibly "dynamic" type sql, by these applications, but would the metrics really be skewed this far?
What these charts tell me, with the "adhoc" statement types pushing CPU and Disk I/O % this far, is that there is a BUNCH of these statements being run against the various databases. The disk I/O might be a bit off since I only recently added dozens of missing indexes, but my question is this:
With the "adhoc" type statements taking up this much of the CPU and Disk resources, can we say that there are likely a lot of these going on ? I suppose one way to find out is to launch profiler and listen in while there is moderate to heavy user activity.
Thoughts?