Condividi tramite


STSrid (tipo di dati geometry)

Si applica a:SQL ServerDatabase SQL di AzureIstanza gestita di SQL di AzureDatabase SQL in Microsoft Fabric

STSrid è un Integer che rappresenta l'identificatore SRID dell'istanza.

Questa proprietà può essere modificata.

Syntax

  
STSrid  

Tipi restituiti

Tipo di SQL Server: int

Tipo CLR: SqlInt32

Examples

Nel primo esempio viene creata un'istanza geometry con il valore dell'identificatore SRID uguale a 13 e viene usato STSrid per confermare l'identificatore SRID.

DECLARE @g geometry;  
SET @g = geometry::STGeomFromText('POLYGON((0 0, 3 0, 3 3, 0 3, 0 0))', 13);  
SELECT @g.STSrid;  

Nel secondo esempio viene utilizzato STSrid per impostare il valore dell'identificatore SRID dell'istanza su 23 e quindi viene confermato il valore SRID modificato.

SET @g.STSrid = 23;  
SELECT @g.STSrid;  

Vedere anche

STX (tipo di dati geometry)
STY (tipo di dati geometry)
Metodi OGC sulle istanze di geometria