时间:2021-07-01 10:21:17 帮助过:5人阅读
USE master;
GO
DECLARE @SQL VARCHAR(MAX);
SET @SQL=‘‘
SELECT @SQL=@SQL+‘; KILL ‘+RTRIM(SPID)
FROM master..sysprocesses
WHERE dbid=DB_ID(‘ty_active_log_gz‘);
EXEC(@SQL);
GO
ALTER DATABASE ty_active_log_gz SET MULTI_USER;
sql server 数据库变成单用户模式的恢复
标签:base roc ast 恢复 lte cti data process spi