How to include data in a DacPac

后端 未结 2 1919
青春惊慌失措
青春惊慌失措 2021-01-01 22:29

In Sql Server Data Tools for Visual Studio, you can create a Sql Server Project and import the structure of a Database. This works very well.

Is it also possible to

2条回答
  •  清歌不尽
    2021-01-01 22:57

    Years later, I finally figure this out: There are two types of exports:

    1. DACPAC - which includes only the structure
    2. BACPAC which includes data and structure.

    You can create either from SSMS:

    1. DACPAC: Select your database, right click for Tasks-> Extract Data Tier App.
    2. BACPAC: Select database, right click for Tasks-> Export Data Tier App.

提交回复
热议问题