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

SqlGeography.STAsText Method

Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeography instance.

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

'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STAsText As SqlChars
'Usage
Dim instance As SqlGeography 
Dim returnValue As SqlChars 

returnValue = instance.STAsText()

Return Value

Type: SqlChars
A SqlChars value that contains the WKT representation of the SqlGeography instance.

This text will not contain any Z (elevation) or M (measure) values carried by the instance.

Community Additions

Show:
© 2015 Microsoft