| 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 |
|
||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!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.
.STIsEmpty ( )
[!INCLUDEssNoVersion] return type: bit
CLR return type: SqlBoolean
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();