Question: I'm new in SQL Server 2008 and I hope you will understand my question/need. 

Thus, I have a table which contains 3 fields (Name, Lat and Long) in my data base (spatial). I want to create a geometry/geography column based on those fields (Lat and Long) but unfortunately without any success. 

My question is: How can I manage to do that?

Answer: 
SQL Server 2012
===============

You can do it like this,

```
SELECT geography::Point(lat, long, 4326)

```

For more information see my post on Database Administrators, [*"SQL Server Point Constructor or version of ST\_Point(x,y)?"*](https://dba.stackexchange.com/a/188247/2639)
If rounding of the original Long/Lat values occur when using the `CONVERT(VARCHAR,` statement.

Try using:

```
GeoData = geometry:: STGeomFromText('POINT(' + CAST(CAST(X AS decimal(13, 2)) AS varchar) + ' '  + CAST(CAST(Y AS decimal(13, 2)) AS varchar) + ')', 4326)

```