initial population of repo

This commit is contained in:
Thierry Schork
2022-12-30 10:37:11 +01:00
parent 969dc57be1
commit 5d7658d85f
72 changed files with 488 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
{
"id": "349bfc81-104e-44ab-afc5-f1cf8adaea6b",
"prefix": "plan",
"description": "fetch query plan from cache",
"body": "SELECT [text]\r\n\t,cp.size_in_bytes\r\n\t,plan_handle\r\nFROM sys.dm_exec_cached_plans AS cp\r\nCROSS APPLY sys.dm_exec_sql_text(plan_handle)\r\nWHERE cp.cacheobjtype = N'Compiled Plan'\r\n\tAND cp.objtype = N'Adhoc'\r\n\tAND cp.usecounts = 1\r\n--AND [text] LIKE '%tblChecksum%'\r\nORDER BY cp.size_in_bytes DESC;\r\n"
}