Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.22 KB

File metadata and controls

49 lines (38 loc) · 1.22 KB
title STIsEmpty (geography Data Type)
description STIsEmpty (geography Data Type)
author MladjoA
ms.author mlandzic
ms.date 03/14/2017
ms.service sql
ms.subservice t-sql
ms.topic reference
ms.custom
ignite-2024
f1_keywords
STIsEmpty_TSQL
STIsEmpty (geography Data Type)
helpviewer_keywords
STIsEmpty method
dev_langs
TSQL

STIsEmpty (geography Data Type)

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

Returns 1 if a geography instance is empty. Returns 0 if a geography instance is not empty.

Syntax

  
.STIsEmpty ( )  

Return Types

[!INCLUDEssNoVersion] return type: bit

CLR return type: SqlBoolean

Examples

The following example creates an empty geography instance and uses STIsEmpty() to verify that the instance is empty.

DECLARE @g geography;  
SET @g = geography::STGeomFromText('POLYGON EMPTY', 4326);  
SELECT @g.STIsEmpty();  

See Also

OGC Methods on Geography Instances