Sqlserver查询所有表名及其说明

select top 1000
ROW_NUMBER() OVER (ORDER BY a.name) AS No, 
a.name AS 表名,
isnull(g.[value],'-') AS 说明
from
sys.tables a left join sys.extended_properties g
on (a.object_id = g.major_id AND g.minor_id = 0)

 

posted @ 2018-05-24 11:49  ManyBugs  阅读(611)  评论(0编辑  收藏  举报