This topic has not yet been rated - Rate this topic

DataType.HierarchyId Property

The HierarchyId property is used to identify a position in a hierarchy.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
public static DataType HierarchyId { get; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.DataType
A DataType object value that specifies a HierarchyId definition in the data type.

Use HierarchyId to query and perform operations on hierarchical data.

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.HierarchyId)

PowerShell

$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::HierarchyId)
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.