I have a SQL Server Job running on server X. Now I have to delete the existing AS(Analysis Services) backup files on server Y and create a fresh backup again. I wrote the required code in a batch file and saved it on hard drive of server X. I am executing this batch file using an execute process task in SSIS.
This SSIS package which is on server X will be run through a SQL Server Job at a particular time in every week.
This batch file executes successfully if I run the package manually, but it's failing if I run through a scheduled job! I tried this many times but in vain.
Error message says that "Access Denied" for deleting the files on server Y.
Any help would be appreciated!