Need a select statment for getting record count for all the tables

  • Need a select statement for getting record count for all the tables, I have only read access on the server , so no Temp tables or SP creation is not permitted. Help appreciated:)

  • You can try this:

    exec sp_MSforeachtable 'select ''?'' as TableName, count(*) as RecordCount from ?'

    I'm sure others will come up with other solutions as well. 😉

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

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