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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -