I run this SQL:
SELECT S.name as Owner, T.name as TableName FROM sys.tables AS T
JOIN sys.schemas AS S ON S.schema_id = T.schema_id
And the result:
Owner TableName
------------------------
dbo Person
dbo Customer
dbo sysdiagrams
sysdiagramsis system table, but shown as a result.
Update:
Thanks to everyone for your answers and comments, I use the answers of Nate Bolam and vmvadivel :
SELECT S.name as Owner, T.name as TableName
FROM
sys.tables AS T
INNER JOIN sys.schemas AS S ON S.schema_id = T.schema_id
LEFT JOIN sys.extended_properties AS EP ON EP.major_id = T.[object_id]
WHERE
T.is_ms_shipped = 0 AND
(EP.class_desc IS NULL OR (EP.class_desc <>'OBJECT_OR_COLUMN' AND
EP.[name] <> 'microsoft_database_tools_support'))
source
share