Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

get column types SQL SERVER

SELECT DATA_TYPE 
FROM INFORMATION_SCHEMA.COLUMNS
WHERE 
     TABLE_SCHEMA = 'yourSchemaName' AND
     TABLE_NAME   = 'yourTableName' AND 
     COLUMN_NAME  = 'yourColumnName'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #column #types #SQL #SERVER
ADD COMMENT
Topic
Name
8+3 =