troubleshooting Question

SQL to get database, tables, records volumes

Avatar of jose11au
jose11auFlag for Australia asked on
SQLMicrosoft SQL Server
3 Comments1 Solution23 ViewsLast Modified:
Could I please ask for your help to get an SQL query that I can run so it can provide the below stats?

I would like to be able to run the sql query for multiple databases. Several times a week too. But no stored procedures, as I do not have the privileges to run them and will never get permission to run them.

Database: database1
Table1 - 500,000 records
Table2 - 120,000 records
Table3 - 50,000 records
Total Records - 670,000
Table Size  - 1234
Database Size - 12GB

And other metrics that you may think is ideal to have.

Thank you.
Andrei Fomitchev

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros