List of all tables in database

后端 未结 2 1362
离开以前
离开以前 2021-01-11 21:36

How can I get list of all tables in SQL Server database using query. My intention is to dynamically display this on a webpage.

2条回答
  •  遥遥无期
    2021-01-11 22:10

    A more generic way:

    Select *
    From INFORMATION_SCHEMA.TABLES
    Where TABLE_TYPE = 'BASE TABLE'
    

提交回复
热议问题