sp_BlitzCache™ Finding: Compile Memory Limit Exceeded

SQL server only has so much memory available for all operations. The query optimizer is no exception. One or more execution plans have been found where the queries were so complex, SQL Server could not allocate enough memory to compile the queries. This is a bad sign.

How to Fix the Problem

Simplify your query. There are no tricks that you can pull here – this requires hands on query tuning.

You can find the offending queries with the following T-SQL: