List names of all tables in a SQL Server 2012 schema

前端 未结 6 447
再見小時候
再見小時候 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:22

    select * from [schema_name].sys.tables
    

    This should work. Make sure you are on the server which consists of your "[schema_name]"

提交回复
热议问题