I just ran into an issue with cascading locks due to a SPID on one of my production servers. When researching the lock, I noticed that there was no sql text. SP_Who 2, nor the following query captured anything,[code="sql"]SELECT sqltext.TEXT, sqlplan.query_plan, req.session_id, req.status, req.command, req.cpu_time, req.total_elapsed_timeFROM sys.dm_exec_requests reqCROSS APPLY sys.dm_exec_sql_text(sql_handle) AS sqltextcross apply sys.dm_exec_query_plan(plan_handle) as sqlplanWHERE req.session_id<>@@spid;[/code]I spoke to the user causing the lock and he ran into a visual basic error when this occurred and didn't close out that window. So my guess is that it's due to an uncommitted transaction. However, shouldn't I still see something if that was the case?
↧