title: What is the difference between STAsText() and ToString() in sql while converting geography to wkt
body: <pre><code>DECLARE @geographyData geography; 
  //Convert wkt to geography 
  
  SET @geographyData = geography::Parse('LINESTRING(-132.360 50.657, -120.340 47.659)');
  
  
  //Convert back to wkt from geography
  
  (1) @geographyData.ToString();
  
  (2) @geographyData.STAsText();
  </code></pre>
  
  <p>(1) and (2) giving me same result that is LINESTRING (-132.36 50.657, -120.340 47.659). What is the difference between ToString() and STAsText()? </p>
  
  <p>Thanks.</p>