sql server 2012 query history

Solutions on MaxInterview for sql server 2012 query history by the best coders in the world

showing results for - "sql server 2012 query history"
Kaylee
03 Jul 2019
1SELECT t.[text]
2FROM sys.dm_exec_cached_plans AS p
3CROSS APPLY sys.dm_exec_sql_text(p.plan_handle) AS t
4WHERE t.[text] LIKE N'%something unique about your query%';
5