June 14, 2007 at 7:14 am
EXEC master.dbo.xp_cmdshell 'dir r:\*.bak /OD' - this returns "The system cannot find the path specified."
EXEC master.dbo.xp_cmdshell 'dir c:\*.bak /OD' - this works properly
r:\ is mapped to a VM shared drive. The SQL Server service is starting with a domain account and the share/directory permissions are correct.
Works fine from a DOS shell.
What else should I be looking at?
June 14, 2007 at 7:29 am
Is firewall enabled between those servers. That might be one of the reasons. Also try giving the UNC path and check if you are able to perform the same successfully.
Cheers,
Sugeshkumar Rajendran
SQL Server MVP
http://sugeshkr.blogspot.com
June 14, 2007 at 7:37 am
No firewalls and the UNC approach WORKS. I'm still baffled as to why the mapped drive won't work.
June 14, 2007 at 6:47 pm
SQL Server doesn't know how to spell "mapped drive"... you're stuck with the UNC approach... which isn't so bad... don't have to worry about the drive letter ever changing
--Jeff Moden
Change is inevitable... Change for the better is not.
June 15, 2007 at 6:02 am
You on Windows 2003? Mapped drives does not work except from the desktop that mapped it, even if you leave that desktop logged in, the process that runs SQL can not access the mapped drive.
Can't remember for sure if this worked to use mapped drives for SQL if running Windows 2000, but I seem to remember it did....
June 15, 2007 at 6:57 am
Thanks to all and I am on Win 2003.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply