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.
Syntax
'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
);
Remarks

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.

Requirements

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

Reference

ComparisonOptions Class
ComparisonOptions Members

 

 


©Copyright 2022 xSQL Software. All Rights Reserved.

Send Feedback