Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have 1 database which has 72 tables

I want size of all tables of year between 2022-04-01 to 2023-03-31

What I have tried:

I tried whereas thing didn't get succeeds
Posted
Updated 5-Apr-23 0:31am
v4
Comments
Akshay malvankar 5-Apr-23 6:32am    
any one here to help me on this any DBA??

1 solution

I would suggest using monitoring tools designed for this purpose

See e.g.
Performance Monitoring and Tuning Tools - SQL Server | Microsoft Learn[^]
or 15 Best SQL Server Monitoring Tools for 2023 (Free + Paid)[^] (caution pop-up window trying to sell stuff)
There are a myriad of others[^]
 
Share this answer
 
Comments
Akshay malvankar 5-Apr-23 9:17am    
But I want query we don not have access to monitoring tools
CHill60 5-Apr-23 10:43am    
Did you look at the Microsoft link ? There are some built in functions you can use - you're going to have to run them at appropriate times though.
There is a query in OriginalGriff's solution to this post calculate row size of database table[^].
All of this is assuming that you are able to filter the tables on a date column - you haven't shared any information about the tables at all.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900