USE MASTER
GO
SP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDE
GO
ALTER DATABASE MyDB SET EMERGENCY
GO
sp_dboption 'MyDB', 'single user', 'true'
GO
DBCC CHECKDB('MyDB','REPAIR_ALLOW_DATA_LOSS')
GO
ALTER DATABASE MyDB SET ONLINE
GO
sp_configure 'allow updates', 0 reconfigure with override
GO
sp_dboption 'MyDB', 'single user', 'false'
GO

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2021-06-19
  • 2021-12-01
  • 2022-01-17
  • 2022-01-07
  • 2022-12-23
  • 2022-01-13
猜你喜欢
  • 2022-01-22
  • 2021-12-09
  • 2021-08-12
  • 2021-09-28
  • 2021-09-06
  • 2021-11-13
相关资源
相似解决方案