title: TSQL Geography STGeomFromText Displaying Wrong Result
body: <p>I'm trying to write a code which will tell me whether point is inside polygon or not</p>
  
  <pre><code>DECLARE @Latitude varchar(20) = '41.694110'
  DECLARE @Longitude varchar(20) = '44.833680'
  DECLARE @g geography;
  DECLARE @p geography;
  
  DECLARE @PolygonString varchar(500) = 'POLYGON((41.711921 44.658505, 41.851703 44.773175, 41.763158 44.972302, 41.654421 44.843083, 41.711921 44.658505))'
  
  SET @g = geography::STGeomFromText(@PolygonString, 4326);
  SET @p = geography::Point(@Latitude, @Longitude, 4326)
  
  SELECT @g.STIntersects(@p)
  </code></pre>
  
  <p>It always return 0. Here is visual representation of scenario.</p>
  
  <p><a href="http://sbtutor.com/" rel="nofollow">http://sbtutor.com/</a></p>
  
  <p>Any ideas what is wrong with my code? </p>
  
  <p>Thanks.</p>