Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in SQL Server only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
SQL Server
How do I determine which tables are empty and which are not in a DB?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
N Casey
New Member
Join Date:
Sep 2010
Posts:
1
#1
How do I determine which tables are empty and which are not in a DB?
Sep 3 '10, 02:37 PM
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
Join Date:
Oct 2006
Posts:
32636
#2
Sep 6 '10, 03:14 PM
I only know to use :
Code:
SELECT COUNT(*) FROM [TableName]
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment