sp_MSforeachtable to return tablename AND rowcount

  • Need this SQL to return both the TableName AND rowcount.  Any ideas?  (as is, only returns the RowCount)

     sp_MSforeachtable @command1="select count(*) from ?"

    BT
  • sp_MSforeachtable @command1="select count(*), '?' from ?"

     

    Eddie Wuerch
    MCM: SQL

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply