Export (0) Print
Expand All

DataType.HierarchyId Property

 

Applies To: SQL Server 2016 Preview

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.

Legacy Code Example

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)
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft