Find single-use, ad-hoc, and prepared queries
dm_exec_cached_plans , dm_exec_sql_text
dm_exec_cached_plans , dm_exec_sql_text
dm_exec_query_plan, dm_exec_query_stats
dm_exec_query_stats, dm_exec_query_plan
Here I am trying to read sql server plan (Execution query Plan) file from ssms query.
Here I am showing how to check backup task completed by percentage. Other Refrences:
Here i am trying to find missing indexes on foreign key relation tables. Other References:
dm_exec_query_stats, dm_exec_query_plan
Here is a sample query to help read deadlock from sys.health extended events.
dm_os_performance_counters
How to Tracking query progress with Live Query Statistics In SQL Server Some tasks that are running take a long time to run and it is sometimes difficult to tell whether these tasks are progressing or not. With the help of below script we are able to track the percentage completion of tasks like:- Database …
Finding a SQL Server running Task with percentage complete using DMVs Read More »