Last active
April 22, 2018 23:54
-
-
Save marcoah/f206a4812cd3e8915c0a9798d8bea3a6 to your computer and use it in GitHub Desktop.
Codigo para pasar Latitud y Longitud de campos double a Geography. SQL Server 2008 en adelante
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE [dbo].[Perforaciones] | |
SET [Posicion] = Geography::STPointFromText('POINT(' + CAST([LON] AS VARCHAR(20)) + ' ' + CAST([LAT] AS VARCHAR(20)) + ')', 4326) | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pasa de Campos Double (Latitud y Longitud) a un solo campo Geography
SQL Server 2008 en adelante (actualmente probado en SQL Server 2014)