S
S
SergeyPiskov2014-03-03 11:58:41
SQL Server
SergeyPiskov, 2014-03-03 11:58:41

How to calculate the size of a table in a database?

The application needs to implement the deletion of data from the database for a certain period of time. At the same time, it is necessary to show how much data to delete, for example, if the user deletes data for the previous month, then X KB of space will be freed up.
I found a lot of Sql queries that consider the volume of the entire database and a specific table. But if you calculate the size of all databases and each table separately, they do not match.
Is it possible to somehow find out how much space will be freed up if I delete some of the data? Not in a specific table, but in the database, after recalculating the size of the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asd24, 2014-03-04
@asd24

stackoverflow.com/questions/7892334/get-size-of-al...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question