xSQL.SchemaCompare.SqlServer Namespace > ComparisonOptions Class : ScriptNewColumnsAsNull Property |
'Declaration <ComparisonOptionDescriptorAttribute(ComparisonOptionTypeEnum.ScriptingOption)> Public Property ScriptNewColumnsAsNull As System.Boolean
[ComparisonOptionDescriptorAttribute(ComparisonOptionTypeEnum.ScriptingOption)] public System.bool ScriptNewColumnsAsNull {get; set;}
[ComparisonOptionDescriptorAttribute(ComparisonOptionTypeEnum.ScriptingOption)] public: __property System.bool get_ScriptNewColumnsAsNull(); public: __property void set_ScriptNewColumnsAsNull( System.bool value );
Adding a column that does not accept the null value might cause the synchronization script to fail especially if the target table contains data. This option provides a workaround by creating the column as nullable, so that SQL Server does not reject it.
The default value for this option is false.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2