I have a new Visual Studio 2008 database project (Data Dude). It was created by listing our existing database. I made a few changes (new columns, tables, indexes, etc.), and I'm trying to create a deployment (diff) script for deployment. I have a schema comparison setup to perform a comparison and create a diff script file. I think I changed most of the comparison options and the object ignores what I need, however, at the top I get a few ALTER DATABASE commands that I probably would not have created. They look like this:
IF EXISTS (SELECT 1 FROM [master].[dbo].[sysdatabases] WHERE [name] = N'$(DatabaseName)') BEGIN ALTER DATABASE [$(DatabaseName)] SET ANSI_NULLS ON, ANSI_PADDING ON, ANSI_WARNINGS ON, ARITHABORT ON, CONCAT_NULL_YIELDS_NULL ON, QUOTED_IDENTIFIER ON, ANSI_NULL_DEFAULT ON, CURSOR_DEFAULT LOCAL WITH ROLLBACK IMMEDIATE; END GO IF EXISTS (SELECT 1 FROM [master].[dbo].[sysdatabases] WHERE [name] = N'$(DatabaseName)') BEGIN ALTER DATABASE [$(DatabaseName)] SET PAGE_VERIFY NONE WITH ROLLBACK IMMEDIATE; END GO
I would prefer to configure the settings so that I donβt have to communicate with my group of 15 people, that they need to delete these lines from the difference file every time they want to pull out and deploy their last environment.
What settings control this?
Brian source share