select TOP 10
CASE WHEN left( c.name, 30 )<>'' THEN N'字段名' END AS '列名', ----此处应为 c.name,为了避免出现公司内部字段名所以做了转换
left( t.name, 30 ) AS '字段类型'
from syscolumns c
join systypes t on c.xusertype = t.xusertype
join sysobjects o on c.id = o.id
CASE WHEN left( c.name, 30 )<>'' THEN N'字段名' END AS '列名', ----此处应为 c.name,为了避免出现公司内部字段名所以做了转换
left( t.name, 30 ) AS '字段类型'
from syscolumns c
join systypes t on c.xusertype = t.xusertype
join sysobjects o on c.id = o.id
where o.name = 'A010'
效果如下图