我正在尝试使用脚本恢复数据库,但我遇到了这个错误
Msg 3201, Level 16, State 2, Line 1
Cannot open backup device 'XXXX'. Operating system error 32(The process cannot access the file because it is being used by another process.).
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
当我尝试使用数据库>恢复.bak文件时还原数据库,它没有数据库名称,.log文件和.mdf文件。
我想知道造成这种情况的原因。