Created
February 16, 2018 14:49
-
-
Save richardbasile/8e188e7081e42db9eeb09601e65c1721 to your computer and use it in GitHub Desktop.
SQL Server - Execution Plan
This file contains hidden or 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 st.text, qs.*, qp.* | |
| FROM sys.dm_exec_query_stats qs | |
| CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) st | |
| cross apply sys.dm_exec_query_plan(plan_handle) qp | |
| WHERE CONVERT(date, last_execution_time) = CONVERT(date, getdate()) | |
| AND st.text like '%<snippet>%' -- change this value | |
| AND st.text not like '%e971a5bc-cd6c-4465-9232-2cb419163112%' | |
| order by creation_time desc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment