I have a schema which has more than 100 tables. Is there a way in SQL server to find the count of all individual tables without entering the table names 100 times.
The result set should display something like below:
Table name | count |
---|---|
Table 1 | Count |
Table 2 | Count |
The only solution which I know is to list the table name in Excel and then using formula to list all the count queries and paste in SQL server. But this requires finding the list of tables for each schema and listing them. Is there there any way to automate it where the only input required will be schema name