Hello forum
I wanted your input on next issue.
I have blocking between 2 processes, Proc1 is blocking Proc2 on tab1 with LCK_M_SCH_S / Sch-S conflict.
proc1: truncate table tab1
Proc2: select encrypted, query_plan from master.sys.dm_exec_query_plan(@S1)
What I do not understand is why Sch-M lock conflicts with select from system functionsys.dm_exec_query_plan.
What kind of locks are aquired by select's to system views/functions.
gene