Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15694

select on system views blocking issue

$
0
0

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


Viewing all articles
Browse latest Browse all 15694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>