July 25, 2012 at 1:29 pm
Hey Guys I was hoping someone might be able to enlighten me on a sql issue I'm seeing when mapping a network drive through sql. the original creator has since left the company, so any help on this would be greatly appreciated.
Here is what I'm seeing:
I run the following:
EXEC master..xp_cmdshell ‘net use M: \\10.0.0.11\Master /user:administrator password’
This worked fine as long as our IP was 10.0.0.11, that IP has now changed to 10.0.0.12 and running
EXEC master..xp_cmdshell ‘net use M: \\10.0.0.12\Master /user:administrator password’
results in the following:
output
row1) M: has a remembered connection to \\10.0.0.11\Master.....
row2) Want to overwrite the remembered connection? (Y/N...
row3) No valid response was provided
row4) Null
So based on the returned results I am assuming that a Y or something needs to be added to the above statement to say go ahead and overwrite the remembered IP, but nothing I've tried so far has worked. If anyone has any idea's on it let me know!
Thanks!
Bill
July 25, 2012 at 2:59 pm
Go to the command line on that machine and type "net use M: \\10.0.0.12\Master /user:administrator password"
When prompted, press Y
Jared
CE - Microsoft
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy