sqlserver 2008 获取列备注
SELECT A.name As 表明,B.Name As 列名,
B.xtype As 列类型,C.Value As 字段说明
FROM sysobjects As A INNER JOIN syscolumns As B ON A.id = B.id
INNER JOIN sys.extended_properties As C ON C.major_id = A.id
AND ( minor_id = B.colid)
posted on 2012-08-31 09:53 lanyue52011 阅读(160) 评论(0) 编辑 收藏 举报