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:

enter image description here

identify query/process blocking current query processing. there many ways identify blocking. here 1 of way.

select *  master.sys.sysprocesses 
  1. column blocked (session id) blocking spid column.
  2. 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

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -