SQL Server
Microsoft 关系数据库管理和分析系统的一个系列,用于实现电子商务、业务线和数据仓库解决方案。
180 个问题
I encountered an issue during a database restore operation in SQL Server. The process and the problem are as follows:
Restore Process Details:
- The database status is stuck in "RESTORING" state.
- The original `.mdf` (primary data file) is now missing.
- The new `.mdf` file created during the restoration is in an incomplete state and cannot be used.
- When I attempt to use the `RESTORE DATABASE [your_database_name] WITH RECOVERY;` command, it reports that the file has not been restored.
Key Points:
.mdf
file.RESTORE DATABASE [your_database_name] WITH RECOVERY;
command, but it indicates that the file was not restored..mdf
file, but I have not been able to locate the original file.Request for Help:
.mdf
file, especially since the restore operation was interrupted, and the new file overwrote the original one?.mdf
file?
.mdf
file created during the restore process?你好,
因为这里是中文论坛,所以接下来的回答我将使用中文。
根据你的描述,数据库的主数据文件.mdf 在还原操作期间丢失,并且您没有 .mdf 文件的原始备份,那么将数据库恢复到完整状态的可能性可以说微乎其微。
如果你能接受数据丢失的风险的话,或许你可以试试RESTORE ... WITH REPLACE
,不过我也不确信是否能成功,因为我之前并没有遇到过此类情况。
所以我还是建议你去开ticket寻求微软官方技术支持的帮助:
如果答案是正确的解决方案,请点击“接受答案”并投赞成票。如果您对此答案有其他疑问,请点击“评论”。