| title | HasZ (geography Data Type) | ||
|---|---|---|---|
| description | HasZ (geography Data Type) | ||
| author | MladjoA | ||
| ms.author | mlandzic | ||
| ms.date | 05/04/2017 | ||
| ms.service | sql | ||
| ms.subservice | t-sql | ||
| ms.topic | reference | ||
| ms.custom |
|
||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
||
| monikerRange | =azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric-sqldb |
[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]
Returns 1 (true) if a spatial object contains at least one Z value; otherwise, it returns 0 (false).
.HasZ
[!INCLUDEssNoVersion] return type: bit
CLR return type: Boolean
DECLARE @p GEOGRAPHY = 'Point(1 1 1 1)'
SELECT @p.HasZ
--Returns: 1 (true) Extended Methods on Geography Instances
Z (geography Data Type)