Try this one
SELECT ORDINAL_POSITION AS POSITION,
COLUMN_NAME = Left(COLUMN_NAME, 20),
DATA_TYPE = Left(DATA_TYPE, 10),
CHARACTER_MAXIMUM_LENGTH as MAX_LEN,
COLUMN_DEFAULT ,IS_NULLABLE AS ISNULL,
NUMERIC_PRECISION AS NUM_PRECISION,
NUMERIC_SCALE AS NUM_SCALE
FROM Master.Information_Schema.Columns
WHERE Table_Name = 'test' ---Change name to your table name
Hope this helps,
Kindest Regards,
Sameer Raval [Sql Server DBA]
Geico Insurance
RavalSameer@hotmail.com