sql 查看杀掉进程

原因是因为其他的线程占用这SqlServer的连接

可通过SQL查看

select spid 
      from master.dbo.sysprocesses 
      where dbid=db_id('databaseName') 

采用SQL杀死占用方

kill spid

记得在执行这个命令的时候切换为别的数据库,要不然本身会占用一个连接,还杀不掉

猜你喜欢

转载自blog.csdn.net/yuzheh521/article/details/118221677