I have a table schema that looks like this:
CREATE TABLE [dbo].[LongAndLats](
[Longitude] [decimal](9, 6) NULL,
[Latitude] [decimal](9, 6) NULL,
[SortOrder] [int] NULL
)
Sample data looks like this:
How can I convert these points into a geography polyline using TSQL?