Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 xp_cmdshell

Author  Topic 

venkat09
Starting Member

17 Posts

Posted - 2010-03-02 : 08:16:00
Hi all,

I use xp_cmdshell to copy a file on the server to a location on another server which is shared and given full access to every one.

The following piece of code gives me Logon failure error.
...
...
exec ('master.dbo.xp_cmdshell "copy D:\A.doc \\AnotherServer\Projects\"')
...
...

How can I avoid this? I gave all kinds of permissions to every one to access/manipulate the folder on the server.

Please tell me if I can somehow correct this.

Thanks,
Venkat R. Prasad
   

- Advertisement -