STSrid (geometry)#
STSrid is an integer representing the spatial reference identifier of the instance.
Syntax#
.STSrid ()
Return type#
int
Example#
Create a geometry instance with the SRID value 13 and use STSrid to confirm the SRID.
DECLARE @g geometry;
SET @g = geometry::STGeomFromText('POLYGON((0 0, 3 0, 3 3, 0 3, 0 0))', 13);
SELECT @g.STSrid;