Extract a dacpac
The extraction process creates a DAC package file (
) that contains definitions of the
database objects and their related instance-level elements. For example, a
file contains
the database tables, stored procedures, views, and users, along with the logins that map to the
database users. The
file can be used to deploy the database to another instance of
or Azure SQL Database or to register the database as a data-tier application (DAC)
in the current instance.
Options for extracting a
include:
- the
wizard in SQL Server Management Studio (SSMS)
-
SQL Server Data Tools
-
SqlPackage command-line utility
-
MSSQL extension for Visual Studio Code
Extracting a
requires at least
and database scope
permissions, and
permissions on. Members of the
fixed server role who are also members of the database_owner fixed database
role are eligible to extract a. Members of the
fixed server role or the built-in
system administrator account named
can also extract a.
- In
, expand the node for the instance containing the database from
which the
is to be extracted.
- Expand the
node.
- Right-click the node for the database from which the
is to be extracted,
point to
, and then select
- Complete the wizard dialogs:
a.
Introduction Page
Management Studio