https://github.com/fabiang/docker-sqlcmd
Sqlcmd – command line tool for Microsoft SQL Server (Docker image).
https://github.com/fabiang/docker-sqlcmd
docker docker-container docker-image docker-images microsoft-sql-server mssql sql-server sqlcmd sqlserver
Last synced: 2 months ago
JSON representation
Sqlcmd – command line tool for Microsoft SQL Server (Docker image).
- Host: GitHub
- URL: https://github.com/fabiang/docker-sqlcmd
- Owner: fabiang
- License: bsd-2-clause
- Created: 2017-01-12T14:47:37.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-12-27T12:12:55.000Z (4 months ago)
- Last Synced: 2025-02-02T07:51:14.744Z (3 months ago)
- Topics: docker, docker-container, docker-image, docker-images, microsoft-sql-server, mssql, sql-server, sqlcmd, sqlserver
- Language: Dockerfile
- Homepage:
- Size: 24.4 KB
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# fabiang/sqlcmd
Sqlcmd – command line tool for Microsoft SQL Server.
[Docker image for the new sqlcmd is also available](https://github.com/fabiang/docker-go-sqlcmd).[](https://hub.docker.com/r/fabiang/sqlcmd)
[](https://github.com/fabiang/docker-sqlcmd)
[](https://github.com/fabiang/docker-sqlcmd/actions/workflows/docker.yml)## Available tags
* 18.4.1.1-1-ubuntu24.04, 18.4.1.1-1, 18.4-ubuntu, 18.4, 18-ubuntu, 18, latest-ubuntu, latest
* 18.2.1.1-1-ubuntu22.04, 18.2.1.1-1, 18.2-ubuntu, 18.2,
* 17.10.1.1-1-ubuntu22.04, 17.10.1.1-1, 17.10-ubuntu, 17.10, 17-ubuntu, 17
* 17.4.1.1-1-ubuntu18.04, 17.4.1.1-1, 17.4-ubuntu, 17.4## License
When using this container you consent with the following licenses:
- [MICROSOFT COMMAND LINE UTILITIES FOR SQL SERVER-UBUNTU LINUX](http://go.microsoft.com/fwlink/?LinkId=746949)
- [MICROSOFT ODBC DRIVER 17 FOR SQL SERVER](licenses/msodbcsql17/LICENSE.txt) when using version 17.x of this Docker image
- [MICROSOFT ODBC DRIVER 18 FOR SQL SERVER](licenses/msodbcsql18/LICENSE.txt) when using version 18.x of this Docker imageAll other parts of this repository are licensed under [BSD 2-Clause License](LICENSE.md).
## Usage
Connect to an Sqlsrv inside another container (Container name is "my-sqlsrv"):
```bash
docker run -it --link my-sqlsrv:sqlsrv fabiang/sqlcmd -S sqlsrv -U sa
```Or to any other server on the network:
```bash
docker run -it fabiang/sqlcmd -S some-sqlsrv -U sa
```Get available options with:
```bash
docker run -it fabiang/sqlcmd '-?'
```