SSMS preview replaces a scattered set of extract, export and deploy commands with two guided wizards: one to create a DACPAC or BACPAC, one to apply it to SQL Server, Azure SQL Database or Managed Instance.
Key points
- Right-click a database and pick Tasks > Create bacpac/dacpac (Preview) to produce the package file.
- Leaving Include data checked produces a BACPAC; clearing it produces a schema-only DACPAC.
- The package can land on local disk or Azure Blob Storage, with read access on source and write on destination.
- DACPAC export can exclude objects that Azure SQL Database does not support; BACPAC export lets you pick tables.
- Applying a DACPAC shows SQLCMD variables, Publish Options and a diff plan, including the Block on possible data loss flag.
- A BACPAC target must have no user-defined objects; even an empty existing table blocks the import.
- Create database from bacpac/dacpac exists only for SQL Server and Azure SQL Managed Instance, not Azure SQL Database.
Real-world use
- Copying a schema and selected table data from a development database to a test environment as a BACPAC.
- Deploying a DACPAC to a populated database and reviewing the planned schema diff before it drops or alters objects.
- Standing up a brand-new target database from a package on SQL Server or Azure SQL Managed Instance and importing into it.
This summary was generated by the agent from the original post on Azure SQL Blog. The full text and all rights belong to its author and publisher. Go to original