Express12
SSCoach
Points: 18514
More actions
April 6, 2006 at 10:01 am
#112797
Need this SQL to return both the TableName AND rowcount. Any ideas? (as is, only returns the RowCount)
sp_MSforeachtable @command1="select count(*) from ?"
Eddie Wuerch
SSChampion
Points: 12535
April 6, 2006 at 10:28 am
#631303
sp_MSforeachtable @command1="select count(*), '?' from ?"
Eddie WuerchMCM: SQL
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply