October 11, 2019 at 1:21 am
Hi!
SQL Server agent is using domain service account which has access to the path.
Can remote into the server and is able to access path and files BUT when the copy command is used in SQL agent if fails saying that for the SQL agent service account access is denied.
Thanks in advance.
October 11, 2019 at 7:50 am
Sounds strange - can you provide more detailed information please:
Kind regards!
Sebastian
October 11, 2019 at 11:06 am
Subsystem is using Operating System, have enabled xp_cmdshell
using this command in sql agent:
copy /y \\sourceserver\E$\test\*.txt f:\test\*.*
Agent is local admin to both servers, but have not specifically provided security to particular folder as it is already admin on the machine.
October 11, 2019 at 11:15 am
Agent is local admin to both servers, but have not specifically provided security to particular folder as it is already admin on the machine.
Agent being an administrator of another server is a pretty bad idea, in my opinion. Anyone with access to the agent could wreak havok. If Agent is using xp_cmdshell
, what credentials is that being run under? (I really hope that the Agent User isn't a sysadmin
on your Instance.)
Why are you using xp_cmdshell
anyway? Why are you not using a Powershell step and Copy-Item
?
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply