SqlGeography.STDistance Method (SqlGeography)
Applies To: SQL Server 2016 Preview
Assembly: Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)] public SqlDouble STDistance( SqlGeography other )
Return ValueType: System.Data.SqlTypes.SqlDouble
Returns null if the spatial reference IDs (SRIDs) of the SqlGeography instances do not match.
If this method is used to determine distance between antipodal points, or consecutive points on opposite sides of the globe, as in the distance between POINT (0 0) and POINT (180 0), this method will return null.