获得MSSQL字段的注释
select a.smallID,a.value,c.name ,a.id
from SysProperties a
inner join syscolumns c on a.id=c.id and a.smallid=c.colid
inner join sysobjects o on a.id=o.id
where o.name = '表名' and c.name = '字段名'
from SysProperties a
inner join syscolumns c on a.id=c.id and a.smallid=c.colid
inner join sysobjects o on a.id=o.id
where o.name = '表名' and c.name = '字段名'
如果只是获得注释的值的话,只要a.value 字段就可以 了。
SysProperties为系统注释表