List names of all tables in a SQL Server 2012 schema

前端 未结 6 561
再見小時候
再見小時候 2021-02-02 06:05

I have a schema in SQL Server 2012.

Is there a command that I can run in SQL to get the names of all the tables in that schema that were populated by user?

I kno

6条回答
  •  青春惊慌失措
    2021-02-02 06:32

    SELECT *
    FROM sys.tables t
    INNER JOIN sys.objects o on o.object_id = t.object_id
    WHERE o.is_ms_shipped = 0;
    

提交回复
热议问题