Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.22 KB

stisempty-geography-data-type.md

File metadata and controls

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