Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a stored procedure which takes the backup of a database to a .bak file in sqlserver 2005.
when I execute the stored procedure by passing database name and path where i have the .bak file, it is showing the below error.

Cannot open backup device 'D:\\DB_BACKUP\Disco.bak'. Operating system error 3(The system cannot find the path specified.).
Msg 3013, Level 16, State 1, Procedure isp_Backup, Line 5
BACKUP DATABASE is terminating abnormally.


Can any one help...

Regards,
Nagaraju.N
Posted

1 solution

Check if D:\DB_Backup exists, and Network Service has write access to it.
 
Share this answer
 
Comments
nm.nagaraju 20-May-11 7:25am    
how to enable network service to access specified location?

Regards,
nm.nagaraju 20-May-11 7:25am    
how to enable network service to access specified location?

Regards,
Prerak Patel 20-May-11 7:28am    
1. Right click the folder
2. Click Properties.
3. Go to Security.
4. Click Add.
5. Write - Network Service and hit OK.
6. Select Network Service from the list and in the permissions, give it full control.
7. Click OK.

That's all.
nm.nagaraju 20-May-11 7:37am    
i have given all the permissions as you said, still it is giving same.

Regards,
Prerak Patel 20-May-11 7:55am    
Sorry, but I ignored double \ in D:\\DB_BACKUP\Disco.bak
Try changing it to D:\DB_BACKUP\Disco.bak

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