SQL Server查询数据库所有表名与表说明
SQL
select a.name tableName, b.value tableComment from sysobjects a LEFT JOIN sys.extended_properties b ON a.id = b.major_id AND b.minor_id = 0 where xtype = 'u'
嘴角上扬,记得微笑
SQL
select a.name tableName, b.value tableComment from sysobjects a LEFT JOIN sys.extended_properties b ON a.id = b.major_id AND b.minor_id = 0 where xtype = 'u'