Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.08 KB

File metadata and controls

34 lines (26 loc) · 1.08 KB
title :: (Scope Resolution) (Transact-SQL)
description :: (Scope Resolution) (Transact-SQL)
author rwestMSFT
ms.author randolphwest
ms.date 03/06/2017
ms.service sql
ms.subservice t-sql
ms.topic reference
dev_langs
TSQL

:: (Scope Resolution) (Transact-SQL)

[!INCLUDE SQL Server Azure SQL Managed Instance]

The scope resolution operator :: provides access to static members of a compound data type. A compound data type is one that contains multiple simple data types and methods. Compound data types include the built-in CLR types and custom SQLCLR User-Defined Types (UDTs).

Examples

The following example shows how to use the scope resolution operator to access the GetRoot() member of the hierarchyid type.

DECLARE @hid hierarchyid;  
SELECT @hid = hierarchyid::GetRoot();  
PRINT @hid.ToString();  

[!INCLUDEssResult]

/

See Also

Operators (Transact-SQL)