I have recently been researching the SQL Server spatial data types and have decided to try and store my long, lat points in a geography field.
However I cannot figure out how to insert the data into the field, I have tried using stuff like “POINT(double, double), 0” and weird stuff like that, but no success.
Also im curious as to what the purpose of the ID argument specified in the geography functions.
Thanks,
Alex.
Have you looked at the examples from MSDN?
From
geography (Transact-SQL):And from
Point: