How can I run commands, passed to sqlcmd
, as currently logged on user automatically i.e without having to enter username and password?
I want to use Windows Authentication only. It is a local server.
sqlcmd
takes the -E
argument, which means, "Use Trusted Connection"... IOW, your windows credentials.