SQL Server 2008: I have 1000 tables, I need to know which tables have data

后端 未结 5 2100
忘掉有多难
忘掉有多难 2020-12-30 01:25

Is there a way in SMSS to detect whether a table has any records? I need to get a list of tables that have records. perhaps there is a sql statement that will do the trick?<

5条回答
  •  盖世英雄少女心
    2020-12-30 02:16

    As your question specifically mentions SSMS you can also right click the database in object explorer and then from the short cut menu do

    Reports -> Standard Reports -> Disc Usage By Table
    

提交回复
热议问题