Denial of responsibility. There is a similar question in SO that seems to be related to the old version of SSDT. The selected answer refers to settings files that are not in my project. I am sure that I have equivalent settings in the new project format, correctly configured.
I am new to SSDT, and I still do not believe that I will not change my database inadvertently. Having received the settings the way I wanted, I tried publishing to see what it would try to do with my database. I get these statements added to the publication script:
ALTER DATABASE [$(DatabaseName)] SET ANSI_NULLS ON, ANSI_PADDING ON, ANSI_WARNINGS ON, ARITHABORT ON, CONCAT_NULL_YIELDS_NULL ON, CURSOR_DEFAULT LOCAL, RECOVERY FULL, AUTO_UPDATE_STATISTICS ON WITH ROLLBACK IMMEDIATE; ALTER DATABASE [$(DatabaseName)] SET PAGE_VERIFY NONE WITH ROLLBACK IMMEDIATE; EXECUTE sp_executesql N'ALTER DATABASE [$(DatabaseName)] SET TRUSTWORTHY OFF WITH ROLLBACK IMMEDIATE';
I don't want the database project to ever change my database settings, so I'm not sure about Debug settings:

Also here in the advanced publishing settings:

In the "Project Settings" | Database Settings I did everything that matches my database:


How can I prevent this?
source share