SQLCMD running as builtin Admin Group
-
18-09-2019 - |
Question
How to run SQLCMD with builtin Administrator Group.
Solution
Run CommandPrompt (or PowerShell) as Administrator (so that you have elevated permissions). Then use sqlcmd with the -E flag, so that it uses your Windows login (using sa these days isn't recommended).
OTHER TIPS
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow