Index.CompactLargeObjects 属性

Gets or sets the Boolean property value that specifies whether to compact the large object (LOB) data in the index.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property CompactLargeObjects As Boolean 
    Get 
    Set
用法
Dim instance As Index 
Dim value As Boolean 

value = instance.CompactLargeObjects

instance.CompactLargeObjects = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool CompactLargeObjects { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool CompactLargeObjects {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member CompactLargeObjects : bool with get, set
function get CompactLargeObjects () : boolean 
function set CompactLargeObjects (value : boolean)

属性值

类型:System.Boolean
A Boolean value that specifies whether to compact the index if the data is large. If True, the index is compacted for large data. Otherwise, False (default).

注释

Setting this property to true compacts large object (LOB) data, such as text, image, varchar(max), nvarchar(max), and varbinary columns.

示例

创建、更改和删除索引

请参阅

参考

Index 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

索引

CREATE INDEX (Transact-SQL)