How do I determine which tables are empty and which are not in a DB?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • N Casey
    New Member
    • Sep 2010
    • 1

    How do I determine which tables are empty and which are not in a DB?

    The DB in question has 300 tables and I'm looking to copy to a backup DB only those tables which are populated. This backup will be refreshed on a daily basis.

    Cheers,

    Niven
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32636

    #2
    I only know to use :
    Code:
    SELECT COUNT(*)
    FROM   [TableName]

    Comment

    Working...