April 5, 2007 at 3:39 am
Hi,
I have a particular scenario where i want to call an exe which is located on a different server from stored procedure.
I tried mapping the drive and using it in the stored proc but it is not working.
thanks
pankaj
April 5, 2007 at 6:59 am
Which version of windows? Windows 2003 a mapped drive is session specific, so running anything against a mapped drive will not work from within SQL.
April 5, 2007 at 7:05 am
The OS is windows 2003 NT only. Is there any other way apart from mapping drives.
I have heard linked sever can be used. Do you know anything about it.
April 5, 2007 at 12:43 pm
UNC names work great.
\\servername\share\exename.exe
Permissions need to be set appropriately for that share.
April 8, 2007 at 11:32 pm
Can you please elaborate this method.
What are UNC names.
And how do i use in my stored proc.
Please give the syntax too if possible.
April 9, 2007 at 6:38 am
Look up xp_cmdshell in Books Online.
For UNC:
http://compnetworking.about.com/od/windowsnetworking/l/bldef_unc.htm
April 10, 2007 at 12:20 am
I tried to use UNC but its not working. the cmd says it does not support it.
here is the error message:
C:\Documents and Settings\nbkr3bi>cd \\172.17.16.117\apps\Services
'\\172.17.16.117\apps\Services'
CMD does not support UNC paths as current directories.
Is there any other way?
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply