https://github.com/fabiang/docker-go-sqlcmd
Modern command line tool written in Go for Microsoft SQL Server as Docker image
https://github.com/fabiang/docker-go-sqlcmd
Last synced: 8 months ago
JSON representation
Modern command line tool written in Go for Microsoft SQL Server as Docker image
- Host: GitHub
- URL: https://github.com/fabiang/docker-go-sqlcmd
- Owner: fabiang
- License: bsd-2-clause
- Created: 2023-06-19T10:57:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-27T09:00:51.000Z (over 1 year ago)
- Last Synced: 2024-08-27T10:23:21.941Z (over 1 year ago)
- Language: Dockerfile
- Homepage:
- Size: 40 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fabian/go-sqlcmd
Sqlcmd – [Modern command line tool written in Go for Microsoft SQL Server](https://github.com/microsoft/go-sqlcmd).
[Docker image for old sqlcmd is also available](https://github.com/fabiang/docker-sqlcmd).
[](https://hub.docker.com/r/fabiang/go-sqlcmd)
[](https://github.com/fabiang/docker-go-sqlcmd)
[](https://github.com/fabiang/docker-go-sqlcmd/actions/workflows/docker.yml)
## Available tags
* 1.x.0, 1.x.0-alpine, 1.x, 1.x-alpine, 1, 1-alpine, latest, latest-alpine
See [Docker Hub page](https://hub.docker.com/r/fabiang/go-sqlcmd/tags?page=&page_size=&ordering=name&name=) for all available tags.
## License
All other parts of the library 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 \
-e SQLCMDPASSWORD='yourStrong(!)Password' \
fabiang/go-sqlcmd -S sqlsrv -U sa
```
Or to any other server on the network:
```bash
docker run -it fabiang/go-sqlcmd -S some-sqlsrv -U sa
```
Get available options with:
```bash
docker run -it fabiang/go-sqlcmd '-?'
```