Skip to content

CMD - SQLPackage to DacPac

*Source: *

SET db="<database>"
SET pw="<password>"
SET server="<server>"
SET user="<dbuser>"
SET outfile=".\db.dacpac"

# Run SqlPackage
SqlPackage /a:extract /of:true /sdn:db /sp:pw /ssn:server /su:user /tf:outfile;

Backlinks:

list from [[CMD - SQLPackage to DacPac]] AND -"Changelog"