Last active
August 9, 2016 09:49
-
-
Save heluvaguy/dbca1e45a5add2275426b8ae17f7ece0 to your computer and use it in GitHub Desktop.
query history from TSQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment