Timeline for Connect to LocalDB via SQLCMD in PowerShell
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 24, 2015 at 20:15 | history | edited | Solomon Rutzky | CC BY-SA 3.0 |
added 7 characters in body
|
Dec 24, 2015 at 20:09 | history | edited | Solomon Rutzky | CC BY-SA 3.0 |
added 7 characters in body
|
S Dec 24, 2015 at 19:56 | history | suggested | jmk22 | CC BY-SA 3.0 |
quotations added to reflect working syntax
|
Dec 24, 2015 at 19:38 | review | Suggested edits | |||
S Dec 24, 2015 at 19:56 | |||||
Dec 24, 2015 at 19:36 | vote | accept | jmk22 | ||
Dec 24, 2015 at 19:36 | comment | added | jmk22 | The quotations did it, thanks! I've edited your answer to reflect this. | |
Dec 24, 2015 at 19:30 | comment | added | Solomon Rutzky |
@jmk22 Then try putting the entire server name in double-quotes: -S "(localdb)\MSSQLLocalDB" . If that doesn't work then we can try escaping the parenthesis. But somehow those parens need to be there.
|
|
Dec 24, 2015 at 18:57 | comment | added | jmk22 |
Including (localdb) in parenthesis looks like it separates it as a command, and it gives the following error: The term 'localdb' is not recognized as the name of a cmdlet, function, script file, or operable program.
|
|
Dec 24, 2015 at 18:53 | history | answered | Solomon Rutzky | CC BY-SA 3.0 |