SQL Server 2012 query is not executing on test server -
i'm not able execute simple sql query. when i'm using unlock
keyword, record open, keyword won't work if want truncate table.
please provide suggestion how solve problem.
my query shown here:
identify query/process blocking current query processing. there many ways identify blocking. here 1 of way.
select * master.sys.sysprocesses
- column
blocked
(session id) blockingspid
column. - to see blocking query run
dbcc inputbuffer(<blocked session id>)
you can take appropriate action based on value of column waittype, open_tran, , status.
Comments
Post a Comment