📜  sql server 2012 查询历史 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:51.994000             🧑  作者: Mango

代码示例1
SELECT t.[text]
FROM sys.dm_exec_cached_plans AS p
CROSS APPLY sys.dm_exec_sql_text(p.plan_handle) AS t
WHERE t.[text] LIKE N'%something unique about your query%';