Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.34 KB

File metadata and controls

50 lines (39 loc) · 1.34 KB
title STIsEmpty (geometry Data Type)
description STIsEmpty (geometry Data Type)
author MladjoA
ms.author mlandzic
ms.date 08/03/2017
ms.service sql
ms.subservice t-sql
ms.topic reference
ms.custom
ignite-2025
f1_keywords
STIsEmpty_TSQL
STIsEmpty (geometry Data Type)
helpviewer_keywords
STIsEmpty (geometry Data Type)
dev_langs
TSQL
monikerRange =azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric-sqldb

STIsEmpty (geometry Data Type)

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

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

Syntax

  
.STIsEmpty ( )  

Return Types

[!INCLUDEssNoVersion] return type: bit

CLR return type: SqlBoolean

Examples

The following example creates an empty geometry instance and uses STIsEmpty() to test whether the instance is empty.

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

See Also

OGC Methods on Geometry Instances