Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SqlGeometry.STAsText Method ()

 

Applies To: SQL Server 2016 Preview

Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeometry instance. This text will not contain any Z (elevation) or M (measure) values carried by the instance.

Namespace:   Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlChars STAsText()

Return Value

Type: System.Data.SqlTypes.SqlChars

A SqlChars object containing the WKT representation of the SqlGeometry.

Return to top
Show:
© 2015 Microsoft