如果不需要还原,则使用: restore database test with recovery如果只需要还原,则使用: restore database test with norecovery
USE master;GOALTER DATABASE AdventureWorks2012SET SINGLE_USERWITH ROLLBACK IMMEDIATE;GOALTER DATABASE AdventureWorks2012SET READ_ONLY;GOALTER DATABASE AdventureWorks2012(如果单用户正在连接中,则必须停止sql服务,在运行这个语句)SET MULTI_USER;GO
新闻热点
疑难解答