Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/markhobson/docker-sqlpackage

Docker image for sqlpackage
https://github.com/markhobson/docker-sqlpackage

docker-image sqlpackage

Last synced: 2 months ago
JSON representation

Docker image for sqlpackage

Awesome Lists containing this project

README

        

# markhobson/sqlpackage

Docker image for [sqlpackage](https://docs.microsoft.com/en-us/sql/tools/sqlpackage-download) 19.1.

Available on [Docker Hub](https://hub.docker.com/r/markhobson/sqlpackage).

## Usage

To run sqlpackage:

```bash
docker run -it --rm markhobson/sqlpackage
```

To import bacpac file `/backups/db.bacpac` to local database `db` with username `sa` and password `password`:

```bash
docker run -it --rm -v /backups:/data --network=host markhobson/sqlpackage \
/a:Import /tsn:tcp:localhost /tdn:db /tu:sa /tp:password /sf:/data/db.bacpac
```

To export local database `db` with username `sa` and password `password` to bacpac file `/backups/db.bacpac`:

```bash
docker run -it --rm -v /backups:/data --network=host markhobson/sqlpackage \
/a:Export /ssn:tcp:localhost /sdn:db /su:sa /sp:password /tf:/data/db.bacpac
```

## Tags

The following Docker tags are available:

* `latest` [(Dockerfile)](Dockerfile)
* `18.7` [(Dockerfile)](https://github.com/markhobson/docker-sqlpackage/blob/18.7/Dockerfile)