I am trying to use SQL Server Agent to perform some copy and delete actions on my backup files. I have created a Job as below:
Problem is when this job runs, it encounters an error. I believe it is due to SQL Server Agent Service Account not having sufficient privileges to perform xcopy and del commands. How do I resolve this?
Do I have to create a Credential then a Proxy? How do I do this?
Update:
I discovered this job failure has nothing to do with insufficient privileges. It is because I cannot refer to the destination network drive using the mapped drive. I have to spell out the entire network drive and place it in quotes, e.g., "\\mynetworkdrive\folder name"