Search code examples
sql-servervisual-studiosql-server-data-tools

How do I deploy a contained SQL Server database from Visual Studio / SQL Server Data Tools?


When creating a database project, in Visual Studio with SQL Server Data Tools, how do I define the database Containment Type property (or in fact, any other database-level property)?

When I look at the properties of the project I don't see anywhere where this can be defined.


Solution

  • Right click your Database Project and Select Properties. On the Project Settings Pane, click the Database Settings... button. Then go to the Miscellaneous pane. There is an option "Containment" and set this to "Partial".

    enter image description here