摘要: USE master;GODECLARE @SQL VARCHAR(MAX);SET @SQL=''SELECT @SQL=@SQL+'; KILL '+RTRIM(SPID)FROM master..sysprocessesWHERE dbid=DB_ID('cmistest');EXEC(@SQL);GOALTER DATABASE cmistest SET multi_user 阅读全文
posted @ 2011-08-05 22:53 暗香浮动 阅读(624) 评论(0) 推荐(0) 编辑