- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
sql server数据库被置疑解决方法(The SQL Server database is the solution to doubt)
sql server数据库被置疑解决方法(The SQL Server database is the solution to doubt)
First, make sure that you have backed up the.Mdf and.Ldf files.
2. create a database with the same name in SQL Server, and then stop the SQL Server service.
3. overwrite the.Mdf and.Ldf files of the new database with the original.Mdf and.Ldf files.
4. restart the SQL Server service, which should see the database in doubt (Suspect) state.
5. in the SQL query analyzer, execute the following command to allow updating of the system tables:
Use master
Go
Sp_configure allow updates, 1
Reconfigure with override
Go
6. place this database as an emergency mode:
Update, sysdatabases, set, status = 32768, where, name =db_name
Go
7. check the errors in the database using the DBCC CHECKDB command:
DBCC CHECKDB (db_name)
GO
8. if the DBCC CHECKDB command fails, go to the tenth step, or you will first set the database in a single user mode, and then try to fix it:
Sp_dboptiondb_name, single user , true
DBCC CHECKDB (db_name, REPAIR_ALLOW_DATA_LOSS)
GO
If the DBCC CHECKDB (db_name, REPAIR_ALLOW_DATA_LOSS) command is prompted to indicate that the database is not in a single user mode, restart the SQL Server service, and then proceed with the attempt.
9. if the DBCC CHECKDB (db_name, REPAIR_ALLOW_DATA_LOSS) command fails, go to the tenth step, otherwise the database error will be repaired successfully:
Rerun the DBCC CHECKDB (db_name) command to make sure there are no errors in the database.
Clear the query status of the database: sp_resetstatusdb_name
Clear the single user mode state of the database: sp_dboptiondb_name, single user , false
Restart the SQL Server service and, if everything is OK, the database has been successfully restored.
10. if the above steps do not solve the problem, please refer to the document in the attached file and try to restore the data in the database by rebuilding the transaction log.
If you have only MDF files, the problem is more complex, and we need to rebuild the transaction log
您可能关注的文档
- 2010年梦想之旅日记(2010 dream trip Diary).doc
- 2010年普通高等学校招生全国统一考试理科综合能力测试(浙江)...(In 2010, the general college entrance examination, the national unified examination, the comprehensive ability test of Science (Zhejiang)...).doc
- 2010年贺岁视频java(2010 New Year Video Java).doc
- 2010年陇南市夏粮预计生产情况分析(Production situation analysis is expected in 2010 Longnan summer).doc
- 2010年高考数学压轴题跟踪演练系列二(2010 college entrance examination of mathematical Title Tracking exercises series two).doc
- 2010年高考英语作文题汇总(Summary of English compositions for college entrance examination in 2010).doc
- 2011-10-09.txt到期删除已备案域名(2011-10-09.txt expires to delete the filed domain name).doc
- 2011届化学化工类毕业生人才交流大会(The 2011 session of chemistry and chemical engineering graduates' Talent Exchange Conference).doc
- 2011内蒙古赤峰物理试题(2011 Inner Mongolia Chifeng physics examination).doc
- 2011初三数学试卷(2011 math test paper).doc
最近下载
- 【江苏卷】江苏省苏州市2024-2025学年2025届高三第一学期学业期末质量阳光指标调研卷(1.13-115)历史试卷.pdf VIP
- 白酒行业全球烈酒专题四:白酒出海,破局之道-250918-华创证券.pdf VIP
- 市第一高级中学党委书记2025年度抓基层党建工作报告材料.docx VIP
- 建筑、市政工程见证取样(送检数量).doc VIP
- 人教版二年级数学上册竞赛试题.pdf VIP
- 机动车检测站安全生产事故应急预案 .pdf VIP
- 压裂队技术员年终总结.pptx
- 《机井井管标准》SL154-2013.pdf VIP
- EPS-3125A-DA-GCN[V1.10][955C]备用电源自动投入装置技术说明书.pdf VIP
- 中国非物质文化遗产糖画介绍宣教讲座PPT课件.pptx VIP
原创力文档


文档评论(0)