标签:
恢复数据库之前,先执行下面这句话 ALTER DATABASE [mpn_stat] SET OFFLINE WITH ROLLBACK IMMEDIATE 执行恢复数据库SQL语句 RESTORE DATABASE mpn_stat FROM DISK = N‘F:\SQL\mpn_stat.bak‘ WITH FILE = 1, NOUNLOAD, REPLACE, STATS = 10 GO 恢复数据库之后,先执行下面这句话 ALTER database [mpn_stat] set online
SQL Server因为数据库正在使用,所以无法获得对数据库的独占访问权
标签:
原文地址:http://www.cnblogs.com/qiyebao/p/4678994.html