Interesting situation here ... Have a dynamic SQL command I have created that has worked in the past on another server BUT does not want to play on its new home.
Here is the code:
When I run this code, it replies back "Access is denied"
Here is the catch ... I can open the remote share just fine and view the file I am trying to copy.
I just cannot figure where the permissions issue is bitting me. Anyone have any ideas as to where to look. As I said before, it ran fine on the other server. To bad that server is no longer around for me to take a look at possible differences.
Thanks All
Thanks
J. Kusch
Here is the code:
Code:
declare @SQLCommand VarChar(200)
set @SQLCommand =
'EXEC master..xp_CmdShell ' + '''' +
'COPY \\128.1.25.12\TestDir\test.txt C:\delme.txt' + ''''
EXEC (@SQLCommand)
Here is the catch ... I can open the remote share just fine and view the file I am trying to copy.
I just cannot figure where the permissions issue is bitting me. Anyone have any ideas as to where to look. As I said before, it ran fine on the other server. To bad that server is no longer around for me to take a look at possible differences.
Thanks All
Thanks
J. Kusch