Condividi tramite


STIsEmpty (tipo di dati geography)

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

Si applica a: SQL Server (SQL Server 2008 tramite versione corrente), Database SQL di Windows Azure (versione iniziale tramite versione corrente).

Sintassi

.STIsEmpty ( )

Tipi restituiti

SQL Server - tipo 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();

Vedere anche

Altre risorse

Metodi OGC sulle istanze di geografia