日期:2014-05-16  浏览次数:20624 次

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