SELECT *
FROM ::fn_listextendedproperty ('MS_Description', 'user', 'dbo', 'table', 'table11', 'column', default)
FROM ::fn_listextendedproperty ('MS_Description', 'user', 'dbo', 'table', 'table11', 'column', default)
,c.name as 字段名
,t.name 数据类型
,c.prec as 长度
,p.value as 描述信息
,m.text as 默认值
from syscolumns c
inner join systypes t on c.xusertype=t.xusertype
left join sysproperties p on c.id=p.id and c.colid = p.smallid
left join syscomments m on c.cdefault=m.id
where objectproperty(c.id,'IsUserTable')=1