I'm currently try to connect the tables I have in my database (who's based in "Microsoft SQL Server Management Studio") to a Excel file.
I've already connected the name of all the tables, but what I need to do is displaying how many items there are in every single table.
Like this:
I did it via
SELECT COUNT(*)
FROM [DB_name].[dbo].[DB_table]
My question is: is there a way to SELECT COUNT (*)
for every table in my database with just one SQL command?
I need something like:
SELECT COUNT (*)
FROM [MEC-ED].[dbo].[all_Tables]