| 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 |
|
|
| helpviewer_keywords |
|
|
| dev_langs |
|
[!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).
.HasM
[!INCLUDEssNoVersion] return type: bit
CLR return type: Boolean
DECLARE @p GEOMETRY = 'Point(1 1 1 1)'
SELECT @p.HasM
--Returns: 1 (true) Extended Methods on Geometry Instances
M (geometry Data Type)