SSDT/SqlPackage drops statistics
问题 During build we generate dacpac files of our database based on a SSDT .sqlproject. This dacpac later gets deployed to production using sqlpackage. Despite using the /p:DropStatisticsNotInSource=False switch, sqlpackage will drop all statistics, that were added after the last sync of the sqlproject with the production database. We can also reproduce this using a publish profile and the generate script option of SSDT: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" xmlns=