Published
- 1 min read
sql server 2012 query history
The solution for this is noted below
sql server 2012 query history
Solution
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%';
Try other methods by searching on the site. That is if this doesn’t work