获取table 的列信息

Select o.name AS tableName,
c.name AS columnName,
p.[value] AS Description
FROM  sys.extended_properties p
inner JOIN
sysobjects o
ON o.id = p.major_id
inner JOIN
syscolumns c
ON  p.minor_id = c.colid and o.id=c.id
AND (o.name = 'ActualReturnMoney')
order  BY o.name

你可能感兴趣的:(table)