xp_cmdshell problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spykhov
    New Member
    • Sep 2006
    • 5

    xp_cmdshell problem

    Hallo to everybody.
    I have a problem in SQL Server 2005 / Windows 2000
    SQL Server is installed in local drive.

    Trying to run the simple sql procedure

    exec master.dbo.xp_c mdshell 'dir P:'

    I have the response (P: is network drive).
    "The network name cannot be found."

    For local drives it's O.K., no problems.
    What should be done the xp_cmdshell will see network drives?

    Someone can help me?
  • ramasp
    New Member
    • Sep 2006
    • 19

    #2
    Hi,

    if you want to see the directories in a server then the folllowing is the command
    exec master.dbo.xp_c mdshell 'dir'

    you can use all dos commands here. if you are connected to a server, then u will get the details of server, otherwise u will get the details of local machine.

    Comment

    • spykhov
      New Member
      • Sep 2006
      • 5

      #3
      Thanks!
      I've found out the solution of my problem.
      The Server Service should be changed from Local to my user ID account.

      Comment

      Working...