Tuesday, 16 April 2019

Add a geography column for fetching lat long using geojson in sql server


DECLARE @g geography;
SET @g = geography::STGeomFromText('POINT(16.0557 75.9547)', 4326);
SELECT cast(@g.ToString() as geography)



Result------------

0xE6100000010C705F07CE19FD52402063EE5A420E3040

No comments:

Post a Comment

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...