Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Net Use CMD. How to map drive w/SQLExpress

Author  Topic 

crugerenator
Posting Yak Master

126 Posts

Posted - 2008-04-23 : 12:35:06
I know this isn't exactly SQL help, but I alwasy get great help here and thought someone might know why I'm having problems. I'm trying to map to a drive where I have a SQLExpress database on another computer within a workgroup. This is the cmd line I'm using...

NET USE * \\XPPRO1\SQLExpress /USER:Admin /SAVECRED /PERSISTENT: YES

I'm thinking the problem is with the * (which names the new drive with the next available letter), or that I have to use a password. Everything I've found says nothing about specifying a password though.

The error message I get says "A command was used with conflicting switches."

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-04-24 : 22:54:35
You didn't tell which drive on remote server to map to. By the way, net use needs host name instead of sql instance name.
Go to Top of Page
   

- Advertisement -