Getting Table Fields in MSSQL - TSQL
This query returns a set of table fields with all characteristics. The method is also applicable and works great with views VIEW. SELECT ORDINAL_POSITION ,COLUMN_NAME ,DATA_TYPE ,CHARACTER_MAXIMUM_LENGTH ,IS_NULLABLE ,COLUMN_DEFAULT…