Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

convert varchar column to int in sql server

 SELECT TRY_CONVERT(int, '32')
 --if there will be a word instade 32 the answer will be NULL
 
PREVIOUS NEXT
Tagged: #convert #varchar #column #int #sql #server
ADD COMMENT
Topic
Name
5+9 =