How to convert a string to integer using SQL query on SQL Server 2005?
You could use CAST or CONVERT:
SELECT CAST(MyVarcharCol AS INT) FROM Table SELECT CONVERT(INT, MyVarcharCol) FROM Table
1.4m articles
1.4m replys
5 comments
57.0k users