Sqlcmd โ Modern command line tool written in Go for Microsoft SQL Server.
Docker image for old sqlcmd is also available.
- 1.7.0, 1.7.0-alpine, 1.7, 1.7-alpine, 1, 1-alpine, latest, latest-alpine
- 1.6.0, 1.6.0-alpine, 1.6, 1.6-alpine
- 1.5.0, 1.5.0-alpine, 1.5, 1.5-alpine
- 1.4.0, 1.4.0-alpine, 1.4, 1.4-alpine
- 1.3.0, 1.3.0-alpine, 1.3, 1.3-alpine
- 1.2.0, 1.2.0-alpine, 1.2, 1.2-alpine
- 1.1.1, 1.1.1-alpine, 1.1, 1.1-alpine
All other parts of the library are licensed under BSD 2-Clause License.
Connect to an Sqlsrv inside another container (Container name is "my-sqlsrv"):
docker run -it --link my-sqlsrv:sqlsrv \
-e SQLCMDPASSWORD='yourStrong(!)Password' \
fabiang/go-sqlcmd -S sqlsrv -U sa
Or to any other server on the network:
docker run -it fabiang/go-sqlcmd -S some-sqlsrv -U sa
Get available options with:
docker run -it fabiang/go-sqlcmd '-?'