Query for returning query plans from sql plan cache that contain 1 or more warnings? [closed]

dba.stackexchange https://dba.stackexchange.com/questions/282577

سؤال

Is there a query I can run to return query plans from sql plan cache that contain 1 or more warnings?

هل كانت مفيدة؟

المحلول

RedGate has a great article Checking the Plan Cache Warnings for a SQL Server Database on how to query the plan cache to find plans with warnings.

Ultimately the warnings will be stored in the XML query_plan column of sys.dm_exec_query_plan DMV.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى dba.stackexchange
scroll top