SQL数据库删除和还原的时候提示 被占用 记录一下
设置离线
1)ALTER DATABASE [datebase] SET OFFLINE WITH ROLLBACK IMMEDIATE
设置在线 2)ALTER DATABASE [datebase] SET ONLINE WITH ROLLBACK IMMEDIATE
设置离线
1)ALTER DATABASE [datebase] SET OFFLINE WITH ROLLBACK IMMEDIATE
设置在线 2)ALTER DATABASE [datebase] SET ONLINE WITH ROLLBACK IMMEDIATE