码迷,mamicode.com
首页 > 数据库 > 详细

恢复数据库

时间:2018-08-23 13:09:48      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:loss   alt   line   single   demo   sys   pair   恢复   复数   

USE master
GO
ALTER DATABASE DEMO SET SINGLE_USER
GO
ALTER DATABASE DEMO SET EMERGENCY
GO
DBCC CHECKDB(DEMO,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE DEMO SET ONLINE
GO
ALTER DATABASE DEMO SET MULTI_USER
GO

ALTER DATABASE AIS20121023174212 SET SINGLE_USER
GO
ALTER DATABASE AIS20121023174212 SET EMERGENCY
GO
DBCC CHECKDB(AIS20121023174212,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE AIS20121023174212 SET ONLINE
GO
ALTER DATABASE AIS20121023174212 SET MULTI_USER
GO

ALTER DATABASE AIS20180714140303 SET SINGLE_USER
GO
ALTER DATABASE AIS20180714140303 SET EMERGENCY
GO
DBCC CHECKDB(AIS20180714140303,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE AIS20180714140303 SET ONLINE
GO
ALTER DATABASE AIS20180714140303 SET MULTI_USER
GO

ALTER DATABASE DAHECode SET SINGLE_USER
GO
ALTER DATABASE DAHECode SET EMERGENCY
GO
DBCC CHECKDB(DAHECode,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE DAHECode SET ONLINE
GO
ALTER DATABASE DAHECode SET MULTI_USER
GO

ALTER DATABASE DSCSYS SET SINGLE_USER
GO
ALTER DATABASE DSCSYS SET EMERGENCY
GO
DBCC CHECKDB(DSCSYS,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE DSCSYS SET ONLINE
GO
ALTER DATABASE DSCSYS SET MULTI_USER
GO

ALTER DATABASE DSCSYS SET SINGLE_USER
GO
ALTER DATABASE DSCSYS SET EMERGENCY
GO
DBCC CHECKDB(DSCSYS,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE DSCSYS SET ONLINE
GO
ALTER DATABASE DSCSYS SET MULTI_USER
GO

ALTER DATABASE HunTec SET SINGLE_USER
GO
ALTER DATABASE HunTec SET EMERGENCY
GO
DBCC CHECKDB(HunTec,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE HunTec SET ONLINE
GO
ALTER DATABASE HunTec SET MULTI_USER
GO

ALTER DATABASE K3DBConfiger SET SINGLE_USER
GO
ALTER DATABASE K3DBConfiger SET EMERGENCY
GO
DBCC CHECKDB(K3DBConfiger,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE K3DBConfiger SET ONLINE
GO
ALTER DATABASE K3DBConfiger SET MULTI_USER
GO

ALTER DATABASE KDAcctDB SET SINGLE_USER
GO
ALTER DATABASE KDAcctDB SET EMERGENCY
GO
DBCC CHECKDB(KDAcctDB,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE KDAcctDB SET ONLINE
GO
ALTER DATABASE KDAcctDB SET MULTI_USER
GO

ALTER DATABASE LearunFramework_Base_2017 SET SINGLE_USER
GO
ALTER DATABASE LearunFramework_Base_2017 SET EMERGENCY
GO
DBCC CHECKDB(LearunFramework_Base_2017,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE LearunFramework_Base_2017 SET ONLINE
GO
ALTER DATABASE LearunFramework_Base_2017 SET MULTI_USER
GO

恢复数据库

标签:loss   alt   line   single   demo   sys   pair   恢复   复数   

原文地址:https://www.cnblogs.com/yunyun0574/p/9522988.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!