• 数据库的恢复数据语句


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

    -- sql server 2012 USE MASTER GO SP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDE GO ALTER DATABASE Tfs_DefaultCollection SET EMERGENCY GO alter database Tfs_DefaultCollection set SINGLE_USER with ROLLBACK IMMEDIATE --sp_dboption 'Tfs_DefaultCollection', 'single user', 'true' GO DBCC CHECKDB('Tfs_DefaultCollection','REPAIR_ALLOW_DATA_LOSS') GO ALTER DATABASE Tfs_DefaultCollection SET ONLINE GO sp_configure 'allow updates', 0 reconfigure with override GO --sp_dboption 'Tfs_DefaultCollection', 'single user', 'false' alter database Tfs_DefaultCollection set MULTI_USER with ROLLBACK IMMEDIATE GO

  • 相关阅读:
    java运算符优先级
    快排
    dpkg
    BZOJ 4487 染色问题
    BZOJ 3530 数数
    XSY 2754 求和
    BZOJ 4559 成绩比较
    广义容斥-二项式反演-容斥系数
    线性基学习笔记及其相关证明
    BZOJ 2754 喵星球上的点名
  • 原文地址:https://www.cnblogs.com/w1-y2-q5/p/4885605.html
Copyright © 2020-2023  润新知