Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.08 KB

File metadata and controls

47 lines (36 loc) · 1.08 KB
title HasM (geometry DataType)
description HasM (geometry DataType)
author MladjoA
ms.author mlandzic
ms.date 05/05/2017
ms.service sql
ms.subservice t-sql
ms.topic reference
ms.custom
ignite-2024
helpviewer_keywords
HasM geometry
dev_langs
TSQL

HasM (geometry DataType)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]

Returns 1 (true) if a spatial object contains at least one M value; otherwise, it returns 0 (false).

Syntax

  
.HasM  

Return Types

[!INCLUDEssNoVersion] return type: bit

CLR return type: Boolean

Remarks

Examples

DECLARE @p GEOMETRY = 'Point(1 1 1 1)'  
SELECT @p.HasM   
--Returns: 1 (true)  

See Also

Extended Methods on Geometry Instances
M (geometry Data Type)