How to avoid dropping schemas when publishing DB in SSDT Database project

database-projectsssdt

When publishing a database from SSDT, there are several options to "do not drop" an object if it is not in the SSDT project. However, it seems that there is no option to avoid dropping schemas. Do anyone know if this is possible to achieve, or do I have to manually edit the publish script?

This is problem when I choose to "do not drop tables", but then it will try to drop schemas that has tables in it.

br
Gert

Best Answer

Use this:

https://agilesqlclub.codeplex.com/

And choose to keep schema's and t won't drop them anymore.