Troubleshooting a high SQL Server Compilation/Batch-Ratio

Posted by Sleepless on Server Fault See other posts from Server Fault or by Sleepless
Published on 2010-03-31T10:26:34Z Indexed on 2010/03/31 10:33 UTC
Read the original article Hit count: 343

Filed under:
|

I have a SQL Server (quad core x86, 4GB RAM) that constantly has almost the same values for "SQLServer:SQL Statistics: SQL compilations/sec" and "SQLServer:SQL Statistics: SQL batches/sec". This could be interpreted as a server running 100% ad hoc queries, each one of which has to be recompiled, but this is not the case here. The sys.dm_exec_query_stats DMV lists hundreds of query plans with an execution_count much larger than 1.

Does anybody have any idea how to interpret / troubleshoot this phenomenon? BTW, the server's general performance counters (CPU,I/O,RAM) all show very modest utilization.

© Server Fault or respective owner

Related posts about sql-server

Related posts about Performance