无法删除备份文件 [英] Unable to Delete Back up File

查看:100
本文介绍了无法删除备份文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有一个.bak文件我把它复制到测试服务器,现在当我试图从主服务器删除它时我得到了以下错误:



"删除文件或文件夹时出错

无法删除[文件夹名称]:正在被其他人或程序使用。关闭所有可能正在使用该文件的程序,然后重试。



请为我提供解决方案。



谢谢

Hi
I have a .bak file i copied it to the test server, Now when I tried to delete it from the main server i got the below error:

"Error deleting file or folder
Cannot delete [name of folder]: It is being used by another person or program. Close any programs that might be using the file and try again.

Please provide me solution.

Thanks

推荐答案

尝试关闭使用该文件的任务 - 之后你可以重启任务 -
try to shutdown the task that uses the file - after that you can restart the task -


错误信息非常明确:它被其他人或程序使用。关闭所有可能正在使用该文件的程序,然后重试。

使用数据库,这意味着SQL服务器,SSMS,VS或您的应用程序可能持有对该文件的引用,从而使其在使用中而不是可删除的。尝试关闭它们,如果您的应用程序直接打开文件或任何原因,请确保在完成文件后释放或处理所有引用该文件的流,句柄等。
The error message is pretty explicit: "It is being used by another person or program. Close any programs that might be using the file and try again."
With a database, that means SQL server, SSMS, VS or your application could be holding a reference to the file, and thus making it "in use" and not deletable. Try closing them all, and if your application opens the file directly or any reason, make sure that all streams, handles and so forth referring to the file are released or disposed when you are finished with them.


这篇关于无法删除备份文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆