0

I am trying to find out how much space certain rows are taking up in multiple tables. I will then add them together and show users how much space they are using in the SQL database.

Using the sp_spaceused stored procedure gets me details about the table as a whole but I need to find the space used on a filtered number of records.

Is there any way to add a WHERE conditon to the sp_spaceused procedure so I can get details about a set of rows in the table, or is there another solution?

user2945722
  • 1,293
  • 1
  • 16
  • 35

1 Answers1

0

You can find the average space taken by row and then can calculate the space required by 'n' no. of rows i.e. You can use sp_spaceused to get total footprint/rowcount = avg space per row.

v2v2
  • 110
  • 8