系统出现故障后无法附加数据库

时间:2017-12-06 18:22:53

标签: sql sql-server

没有太多细节,我遇到了系统故障,这意味着SQL意外关闭。我已设法分离数据库并将其从SSMS中的数据库列表中删除。

我现在正尝试从同一个NAS上的其他位置重新连接数据库;

我正在使用的命令就是这个;

    CREATE DATABASE ArchiveManager 
ON (Filename = '\\411352-web5\m$\FTP\Detroit\ArchiveManager.mdf'),
   (Filename = '\\411352-web5\m$\FTP\Detroit\ArchiveManager_log.ldf')
FOR ATTACH;

最初,数据库位于共享j$上。我现在不得不将其移至m$

我在尝试附加数据库时遇到以下错误;

File activation failure. The physical file name "\\192.168.200.222\j$\FTP\Detroit\ArchiveManager_log2.ldf" may be incorrect.
The log cannot be rebuilt because there were open transactions/users when the database was shutdown, no checkpoint occurred to the database, or the database was read-only. This error could occur if the transaction log file was manually deleted or lost due to a hardware or environment failure.
Msg 1813, Level 16, State 2, Line 7
Could not open new database 'ArchiveManager'. CREATE DATABASE is aborted.

请注意192.168.200.222解析为411352-web5

0 个答案:

没有答案