Click here to Skip to main content
15,906,558 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have created a backup file programmaticaly and now i want to move it to another path but i receive Access is denied error.

Note: my program work in a network and i have created my bak file in a shared folder.
Posted
Comments
M_Mogharrabi 10-Sep-11 4:57am    
I think that the backup file is in use by SQL Server after performing backup query.How can i release the file from SQL Server?

1 solution

As the error says you don't have necessary privileges to read/move the backup file. Basically you have two choices:
- use more powerful credentials
- change the security settings of the backup file/folder

To see the privileges you need, using right click on the backup file, open properties/security.
 
Share this answer
 
Comments
M_Mogharrabi 10-Sep-11 3:05am    
I have tried these two choices already but i received that error again.i have tried with my system administrator and it said access is denied.i wanted to change security settings but this file does not have Security tab in its properties!!!?
Wendelius 10-Sep-11 5:24am    
If you don't see the security tab it sounds like you don't have the privileges to modify privileges. Try opening the Windows Explorer as Administrator. And if the file is in network share, ask your network admin to give you more privileges.
M_Mogharrabi 10-Sep-11 3:52am    
I'm waiting to your replies yet!!!
please help me.
M_Mogharrabi 11-Sep-11 0:38am    
thanks Mike,i tried to change its security by network administrator from server computer but he does not have permission too.i think this problem is by SQL server,i mean SQL Server did not release the backup file after create it.
Wendelius 11-Sep-11 3:11am    
That could cause same kind of problem. Also I've seen several situations where the fiel is actually deleted, but it's still visible in the folder. In these cases the behaviour has been similar. If yu have the opportunity to restart SQL Server, you could get verification to this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900