SQL Flow Field Guide

geography.STCurveN

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

spatial method STCurveN (instance.STCurveN(...))

What changes

Input
spatial instance (and arguments)
Output or change
geography
Return type
SQL Server return type: geography CLR return type: SqlGeography

Syntax at a glance

.STCurveN( n )

Work example

Use geography.STCurveN to read one curve component from a supported instance.

Use a one-based index and check that the instance supports curves. Keep the geography type and SRID in the review.

Check your work The sample CircularString contains two arcs; STCurveN(2) returns its second arc.

Practice SQL

Open in SQL Flow

Open the SQL for a walkthrough. Run the example in SQL Server to check its result.

SELECT c.shape.STCurveN(2).STAsText() AS second_curve_wkt FROM (VALUES (geography::Parse('CIRCULARSTRING(-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653)'))) AS c(shape);

Open Microsoft Learn for full syntax, permissions, and details for your version.