Just out of curiosity, when you said you want to get rid of everything after the dot, did you mean update the table, or as a select? I'm assuming it's update.
genomon's way should work, although it assumes there is always one digit after the decimal, so if it is, then go with that.
If however you have varying numbers of digits to the right of the decimal, try using the CHARINDEX and LEFT functions. More info in BOL, but essentially, it checks a string for a specified character - in this case '.' - and returns the position of that character in the string.
You can use this by finding the position of the '.' and getting the string to the left of it.
Because the integer returned includes the '.' itself you minus one as follows:
Code:
UPDATE TableA
SET ColA = LEFT(ColA, CHARINDEX('.', ColA) - 1)
The above itself also assumes there is always a '.'. If it comes across a value without one, it returns -1 and you'll get an "Invalid length parameter" error. If this is being used for UPDATE, then I'd add a where clause as follows:
Code:
WHERE CHARINDEX('.', ColA) > 0
If however, you're using it for a select statement, using the where clause will not include any values without '.', so you'd be best to use a case statement I think.
Code:
SELECT CASE
WHEN CHARINDEX('.', ColA) > 0
THEN LEFT(CharIndexValue, CHARINDEX('.', ColA) - 1)
ELSE ColA
END AS ColA
FROM TableA
Hope this helps.