Skip to content

markhobson/docker-sqlpackage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

markhobson/sqlpackage

Docker image for sqlpackage 19.1.

Available on Docker Hub.

Usage

To run sqlpackage:

docker run -it --rm markhobson/sqlpackage

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

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:

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: