摘要: USE masterGODECLARE @SQL VARCHAR(MAX);SET @SQL=''SELECT @SQL=@SQL+'; KILL '+RTRIM(SPID)FROM master..sysprocessesWHERE dbid=DB_ID('hotel'); EXEC(@SQL);GOALTER DATABASE hotel SET MULTI_USER 阅读全文
posted @ 2010-12-14 10:36 星火卓越 阅读(287) 评论(0) 推荐(0) 编辑