10037: Label class value has an SQL query that is not optimizable

Your map layer has a label class with a SQL query that cannot be optimized by the drawing engine. The optimized map service can reduce the number of queries sent to the database in most circumstances, but the SQL query used by this label class cannot take advantage of this optimization.

Solution

Check the drawing performance of your map service in the Preview window. See Publishing optimized map services for more information.

More information

Optimized map services can reduce the number of queries sent to the database if the SQL queries used by labeling are simple. Vendor-specific SQL logic cannot be optimized by the drawing engine.


8/20/2010