Share via


STIsEmpty (tipo di dati geography)

Si applica a:SQL Server database SQL di Azure Istanza gestita di SQL di Azure

Restituisce 1 se un'istanza geography è vuota. Viene restituito 0 se un'istanza geography non è vuota.

Sintassi

  
.STIsEmpty ( )  

Nota

Per visualizzare la sintassi Transact-SQL per SQL Server 2014 (12.x) e versioni precedenti, vedere la documentazione delle versioni precedenti.

Tipi restituiti

Tipo SQL Server restituito: bit

Tipo CLR restituito: SqlBoolean

Esempi

Nell'esempio seguente viene creata un'istanza vuota geography e viene utilizzato STIsEmpty() per verificare se l'istanza è vuota.

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

Vedi anche

Metodi OGC sulle istanze di geografia