当前位置: 代码迷 >> Sql Server >> update 话语一直正在执行中。
  详细解决方案

update 话语一直正在执行中。

热度:23   发布时间:2016-04-24 18:22:27.0
update 语句一直正在执行中。。。。。。

 update SRC_Contact_excel set Oper_Status = 'A', Imfil_Id = null, Imtpl_Id = null, ImFil_BankCode = null   
 where isnull(Oper_Status, '') <> 'D'   在sqlserver2008 中一直是正在执行中...............半个小时了,还不行30M数据表里面
where 语句符合条件数据有6万多条....什么情况?
------解决方案--------------------
你查查这个,应该有阻塞的情况:

select *
from sysprocesses
where blocked <>0
------解决方案--------------------
很可能是阻塞导致的:
select * from master.dbo.sysprocesses where blocked<>0 
找到阻塞的原进程id
dbcc inputbuffer(@spid)
看看这个进程是干什么的。
自己酌情看是否可以kill
  相关解决方案