Solved

Clearing of remembered mapped drives in SQL server for backuping up to netowrk drives

Posted on 2014-09-17
4
512 Views
Last Modified: 2014-11-04
In the past I have been backing up my SQL databases to a removable or network mapped drive. I had to enable xp_cmdshell etc and when I try to map a drive the SQL states that this is a remembered drive, even though it doesn't exist. I would like to clear out those remembered drives without it messing up my SQL server install.

Does anyone know a command to do this? Also I don't know much SQL, but the output of the Remembered drive asks about overwriting it. However I don't know the syntax to do that.
0
Comment
Question by:donebert
  • 2
  • 2
4 Comments
 
LVL 26

Expert Comment

by:Zberteoc
ID: 40328546
If you are running the dos commands from SQL with xp_cmdshell it is possible that the OS is waiting for a response that is not provided(you can't provide feedback through xp_cmdshell). You can try to run the command directly in prompt window and give all the requested answers.
0
 
LVL 1

Author Comment

by:donebert
ID: 40328575
That is correct the OS is waiting for a response to overwrite the remembered connection Y/N. No valid response was provided, therefore it does not allow me to see that drive in SQL disk backup. It states it has a remembered connection. Not sure if xp cmd shell has something to clear out remembered mapped drives.
0
 
LVL 1

Author Comment

by:donebert
ID: 40328585
Here is what sql query shows
sql-drive-map-error.docx
0
 
LVL 26

Accepted Solution

by:
Zberteoc earned 500 total points
ID: 40328669
That is exactly what I was referring to. If you run the same command in OS prompt window it waits for your answer for the "want to override the rememberred connection?( Y/N)" question, which you can't provide with xm_cmdshell. If you run it in windows you can type Y/N, depending on what you want.

If you want to default to Yes very time you can try to add

/p:yes

to your command executed by xp_cmdshell.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now