Running an SSIS Package as a SQL Server Agent Job doesn't copy files? -


i have ssis package can import integration services on server , run no problems. copy files directory on network server running on.

when execute sql agent job says job ran no files copied. verify there files in source location , destination path exists. using absolute paths (no mapped drives).

why doesn't copy files when run sql agent job?

fyi - source directory on unix box , map drive location have enter user/password combination.

i have feeling sql agent job runs nt service\sqlserveragent, not user has permission unix box. there way run sql job specific user?

thanks in advance.

you need create credential, sql agent proxy, , assign proxy account sql agent job step. proxy accounts specific each subsystem (e.g powershell, cmdexec, ssis, etc.)

-- creating credential use [master] go create credential [superuser] identity = n'domain\account', secret = n'mypassword' go  -- creating proxy cmdexec subsystem, adding principal use [msdb] go exec msdb.dbo.sp_add_proxy @proxy_name=n'my custom proxy',@credential_name=n'superuser',          @enabled=1 go exec msdb.dbo.sp_grant_proxy_to_subsystem @proxy_name=n'my custom proxy', @subsystem_id=3 go exec msdb.dbo.sp_grant_login_to_proxy @proxy_name=n'my custom proxy', @fixed_server_role=n'sysadmin' go  -- assigning job step run given proxy user use [msdb] go exec msdb.dbo.sp_update_jobstep @job_id=n'0df2dac2-4754-46cd-b0bf-05ef65e1f87e', @step_id=1 , @subsystem=n'cmdexec',      @proxy_name=n'my custom proxy' go 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -