Click here to Skip to main content
15,923,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear expert,

How do you handle INT in sql server 2008


SELECT IDNO, INT(ARREARS) AS COMP_ARREARS FROM TRIAL


Please assist


Thanks

What I have tried:

I have checked on the Internet and reviewed my notes
Posted
Updated 4-Apr-16 18:21pm
Comments
Karthik_Mahalingam 5-Apr-16 0:17am    
you want to cast to int?

1 solution

Try this
SQL
SELECT IDNO, cast(ARREARS as int) AS COMP_ARREARS FROM TRIAL

refer these links:
CAST and CONVERT (Transact-SQL)[^]
SQL SERVER - Convert Text to Numbers (Integer) - CAST and CONVERT[^]
SQL Server: CAST Function[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900