Last active
November 9, 2019 09:17
-
-
Save pettan93/723bd96bb89dfec524388958165ad730 to your computer and use it in GitHub Desktop.
Execute SQL query in MSSQL using Docker, one-liner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run mcr.microsoft.com/mssql-tools sh -c "/opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U user -P pass -Q 'select @@version;'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment