Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xp_cmdshell - Access Problem

Status
Not open for further replies.

SQLBI

IS-IT--Management
Jul 25, 2003
988
GB
Hi,

I'm trying to execute the following xp_cmdshell statement in order to create a new directory on a different machine to my SQL server.

Code:
xp_cmdshell 'mkdir "\\Prnsrv01\reminders and direct mailing\Test Dir"'

When i try to create the file locally, all is well, however not on the remote PC.

I have ensured that my "DOMAIN\SQLService" account has access to the shared resource on the remote PC and that it has local admin access too, but still no joy.

Can anyone suggest where i'm gong wrong?

Cheers,
Leigh

The problem with common sense is that it isn't that common!
 
The network share permissions?

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Typical... I added my SQLService user on the security tab of the share and not in the permissions on the Sharing tab.

Thanks mrdenny.

Cheers,
Leigh

The problem with common sense is that it isn't that common!
 
no problem.

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top