Sql Server数据库被置疑解决方法(国外英文资料).doc

Sql Server数据库被置疑解决方法(国外英文资料).doc

  1. 1、本文档共15页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Sql Server数据库被置疑解决方法(国外英文资料)

Sql Server数据库被置疑解决方法(国外英文资料) First confirm the backup. MDF and.ldf files. Create a new database of the same name in SQL Server and stop the SQL Server service. Use the original.mdf and.ldf files to cover the corresponding new database. MDF and.ldf files. Restart the SQL Server service, which should be seen as Suspect. Execute the following commands in the SQL query analyzer to allow the update system table to be updated: Use the master The go Sp_configure allow updates, 1 Reconfigure with override The go Set this database as an emergency mode: Update sysdatabases set status = 32768 where name = db_name The go Use the DBCC CHECKDB command to check for errors in the database: DBCC CHECKDB ( db_name ) The GO If the DBCC CHECKDB command fails, go to step 10, otherwise you will set the database as a single-user mode and try to fix it: Sp_dboption db_name, single user, true DBCC CHECKDB ( db_name , REPAIR_ALLOW_DATA_LOSS) The GO If the execution of DBCC CHECKDB (db_name, REPAIR_ALLOW_DATA_LOSS) command prompt said database in single user mode, not restart the SQL Server service, and then continue to try. If the DBCC CHECKDB ( db_name , REPAIR_ALLOW_DATA_LOSS) command fails, go to step 10, otherwise the error in the database is successfully fixed: Re-execute the DBCC CHECKDB ( db_name ) command to confirm that there are no errors in the database. Clear query status of the database: sp_resetstatus db_name Clean up the single-user mode status of the database: sp_dboption db_name, single user, false Restart the SQL Server service, and if all is ok, the database has been successfully restored. If none of these steps solve the problem, please refer to the document in the attachment to try to restore the data in the database by rebuilding the transaction log. If you only have the MDF file, the problem is more complicated, and we need to rebuild the transaction log directly: Create a new database of the same name in SQL Server and stop the SQL Server service. Use the original L

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档