https://github.com/beeven/docker-sqlcmd
sqlcmd docker image
https://github.com/beeven/docker-sqlcmd
Last synced: 4 months ago
JSON representation
sqlcmd docker image
- Host: GitHub
- URL: https://github.com/beeven/docker-sqlcmd
- Owner: beeven
- Created: 2016-07-09T06:10:16.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-09T08:37:06.000Z (almost 10 years ago)
- Last Synced: 2025-01-24T09:29:00.562Z (over 1 year ago)
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Docker sqlcmd image
=======
Supported tags and respective
------------
* latest [(13/Dockerfile)](https://github.com/beeven/docker-sqlcmd/blob/master/docker-entrypoint.sh)
### Usage:
Set up an alias to run it from docker image:
```bash
alias sqlcmd="docker run -it --rm beeven/docker-sqlcmd"
```
#### Known issue:
According to [this question](http://stackoverflow.com/questions/15103331/failure-to-connect-to-sql-server-from-linux), in order to connect to a named instance, you have to specify the port which the instance is using, e.p. ```sqlcmd -S 10.53.1.8,59013 -Uxxx -Pxxxx```.
### Documentation
[Connecting with sqlcmd (MSDN)](https://msdn.microsoft.com/en-us/library/hh568447.aspx)
[Connect to the Database Engine With sqlcmd (MSDN)](https://msdn.microsoft.com/en-us/library/ms188247.aspx)
### Example
```bash
$ sqlcmd -S 10.53.1.8 -U user_readonly
1> use TestDB;
2> go
```