Check out example codes for "how to check data type in sql server". It will help you in understanding the concepts better.

Code Example 1

SELECT DATA_TYPE 
FROM INFORMATION_SCHEMA.COLUMNS
WHERE 
     TABLE_NAME = 'yourTableName' AND 
     COLUMN_NAME = 'yourColumnName'

Learn ReactJs, React Native from akashmittal.com