Ok, I've found what the problem is, and yes, of course it was my fault :)
I've inserted records in the table like this
INSERT INTO [dbo].[TestLocation]([Name],[Location],[Latitude],[Longitude]) VALUES('Location1', geography::STGeomFromText('POINT(-34.612654 -58.463586)', 4326),-34.612654,-58.463586);
Then I realized that, at first, latitude and longitude were inverted, so I've changed then in order, but just for the last two fields and forgot to change the order in the "geography::STGeomFromText". After running
SELECT
Ubicacion.Lat,
Ubicacion.Long
FROM
Promotion
I realized what the error was. Doh!
Be aware of this as
SELECT
Ubicacion.Lat,
Ubicacion.Long
FROM
Promotion
Be aware of this as geography datatype is saved as binary so it is not human readable, so, unless you run the above query you won't realize the source of the problem.
Thanks! Guillermo.