Hi,
I am using xp_cmdshell to call robocopy.exe to copy a backuop from another server in a different domain. All was working fine until a restart - methinks security pixies have been out!
The process fails and robocopy logs that it failed to access a share. OK - I looked deeper.
I found that robocopy.exe wasn't running under the sql agent account - in the event log it was running under a local admins account - that would explain why it doesn't have access to the shares, whereas the SQL agent does.
I thought (nieve me) that exes called from sql agent ran under the agent profile. Can someone tell me the following please:
Should exes called from the SQL agent run under SQL agents profile - if so, what could have changed (I can't see any proxy accounts there) and what steps should I take to put it right?
If the exe should run under a different profile, how can I tell SQL to call it using the SQL agent profile?
Windows 2003, SQL 2000 SP3a
Many thanks
I am using xp_cmdshell to call robocopy.exe to copy a backuop from another server in a different domain. All was working fine until a restart - methinks security pixies have been out!
The process fails and robocopy logs that it failed to access a share. OK - I looked deeper.
I found that robocopy.exe wasn't running under the sql agent account - in the event log it was running under a local admins account - that would explain why it doesn't have access to the shares, whereas the SQL agent does.
I thought (nieve me) that exes called from sql agent ran under the agent profile. Can someone tell me the following please:
Should exes called from the SQL agent run under SQL agents profile - if so, what could have changed (I can't see any proxy accounts there) and what steps should I take to put it right?
If the exe should run under a different profile, how can I tell SQL to call it using the SQL agent profile?
Windows 2003, SQL 2000 SP3a
Many thanks