USE master;GODECLARE @SQL VARCHAR(MAX);SET @SQL=''SELECT @SQL=@SQL+'; KILL '+RTRIM(SPID)FROM master..sysprocessesWHERE dbid=DB_ID('ty_active_log_gz'); EXEC(@SQL); GO ALTER DATABASE ty_active_log_gz SET MULTI_USER;
Powered by: 博客园 Copyright © 2024 漂泊雪狼 Powered by .NET 8.0 on Kubernetes