UserOptions.AnsiPadding Property
Applies To: SQL Server 2016 Preview
Gets or sets the Boolean property value that specifies whether trailing blanks are inserted (padded) or removed (trimmed) in char, varchar, binary, and varbinary columns.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Deploy | SfcPropertyFlags.Matrix,
"true")]
public bool AnsiPadding { get; set; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::Deploy | SfcPropertyFlags::Matrix,
"true")]
property bool AnsiPadding {
bool get();
void set(bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Deploy | SfcPropertyFlags.Matrix,
"true")>]
member AnsiPadding : bool with get, set
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Deploy Or SfcPropertyFlags.Matrix,
"true")>
Public Property AnsiPadding As Boolean
Property Value
Type: System.Boolean
A Boolean value that specifies the whether trailing blanks are inserted or removed in char, varchar, binary, and varbinary columns.
If True, trailing blanks are inserted following the value to fill the column. Trailing blanks on values are not trimmed.
If False (default), trailing blanks are not inserted into the column. Trailing blanks on values that are inserted into the column are trimmed.
Examples
Legacy Code Example
See Also
UserOptions Class
Microsoft.SqlServer.Management.Smo Namespace
Configuring SQL Server in SMO
Unable to find linked topic '18ec1bd8-1d3c-4b17-befb-a2cbb5524446'.
Return to top