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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xp_cmdshell problem

Status
Not open for further replies.

seekwall

Programmer
May 14, 2001
41
0
0
GB
I am using SQL Server 2000, and am trying to run the following command:

execute master..xp_cmdshell 'dir g:\'

The 'g' drive on the SQL Server points to a server at a co-location via a VPN.

When I run the above commmand, I get the following error message:

output -----------------------------------------------------------Logon failure: unknown user name or bad password.
NULL

Security isn't my strong point, so could anyone shed some light on this problem for me ?


 
When you execute xp_cmdshell, it executes in the security context of the SQL Service account. You need to make sure this account has the necessary privelages on the network drive.

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top