天天看點

無法打開實體檔案 "D:\understructuredata _DAT.MDF"。作業系統錯誤 5:"5(拒絕通路。)"

錯誤資訊:

背景:

停止原資料庫伺服器sql server相關的拂去,從原資料庫複制相應的資料檔案(.mdf)與日志檔案(.ldf)到目标資料庫所在伺服器。

登陸資料庫,選擇附加,提示錯誤如下:

解決方法:

給資料檔案(.mdf)與日志檔案(.ldf),授予everyone的操作,如下圖

無法打開實體檔案 "D:\understructuredata _DAT.MDF"。作業系統錯誤 5:"5(拒絕通路。)"
無法打開實體檔案 "D:\understructuredata _DAT.MDF"。作業系統錯誤 5:"5(拒絕通路。)"