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'