SQL Server常用处理
1 数据库不能分离(分离时,老提示占用)
--查询数据库得连接Id
select spid from sysprocesses where dbid=db_id('test') kill 61 --这个是上边语句的查询结果 --分离数据库 use master go exec sp_detach_db @dbname='test' go
本文来自博客园,作者:CelonY,转载请注明原文链接:https://www.cnblogs.com/CelonY/p/14876528.html