Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mssql get data types of columns

SELECT 
	COLUMN_NAME
    ,DATA_TYPE 
FROM INFORMATION_SCHEMA.COLUMNS
WHERE 
     TABLE_SCHEMA = 'yourSchemaName' AND
     TABLE_NAME   = 'yourTableName'
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #mssql #data #types #columns
ADD COMMENT
Topic
Name
4+7 =