xSQL Schema Compare SDK for SQL Server version 12
ScriptNewColumnsAsNull Property

Gets or sets the value that indicates whether the missing columns that do not allow NULL should be scripted as nullable.
Public Property ScriptNewColumnsAsNull As System.Boolean
public System.bool ScriptNewColumnsAsNull {get; set;}
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

See Also


ComparisonOptions Class
ComparisonOptions Members



┬ęCopyright 2022 xSQL Software. All Rights Reserved.

Send Feedback