Quick answer: To open a DACPAC in Visual Studio, create a SQL database project and use Import > Data-tier Application (*.dacpac). Visual Studio/SSDT converts the DACPAC schema into SQL project files that you can inspect and edit. Microsoft documents this as a supported way to unpack a DACPAC.

A DACPAC is a portable database model package used to deploy database schema. You can import it into a SQL project to review its database objects before deployment.

Prerequisites

Prerequisite:
Install Visual Studio with SQL Server Data Tools (SSDT) and the SQL database project tooling required for your Visual Studio version.

1. Create a SQL database project

Open Visual Studio, select File > New > Project, and create a SQL Server Database Project.

Create a SQL Server Database Project in Visual Studio

Provide a project name and select OK to create the blank project.

Available on Microsoft Store

SSRS Reports Migration Wizard

A simple Windows tool for migrating SSRS reports, data sources, and related configurations between report servers.

2. Import the DACPAC

In Solution Explorer, right-click the empty database project and select Import > Data-tier Application (*.dacpac).

Import a DACPAC into a Visual Studio SQL database project

Browse to the .dacpac file and start the import.

Select a DACPAC file for import into Visual Studio

After the import completes, the database objects from the DACPAC are added to the project.

DACPAC import progress in Visual Studio
Database objects imported from a DACPAC into Visual Studio

Pro tips:
Review the contents of a DACPAC before deploying it, especially when it comes from an unknown or untrusted source. Microsoft also documents SqlPackage and other options for unpacking a DACPAC.

See more

Visual Studio Marketplace

SSIS Catalog Migration Wizard

Extend Visual Studio with an easy way to migrate SSIS Catalog projects.

Kunal Rathi

With over 15 years of experience in data engineering and analytics, I've assisted countless clients in gaining valuable insights from their data. As a dedicated supporter of Data, Cloud and DevOps, I'm excited to connect with individuals who share my passion for this field. If my work resonates with you, we can talk and collaborate.