DECLARE @BJ GEOGRAPHY DECLARE @XT GEOGRAPHY SELECT @BJ= geography::Point('39.92889', '116.38833', 4326) SELECT @XT = geography::Point('37.0630556', '114.441667', 4326) ELECT @BJ AS Beijing, @XT AS Xingtai, 'The distance is ' + CAST(@BJ.STDistance(@XT…