Is there any way to find out how much diskspace a table in MSSQL uses? Or even better, how much diskspace a single row consumes?
|
In SQL Server Management Studio, right click on the Database and choose Reports|"Disk Usage By Tables". Also, I don't know what version of SQL Server it was introduced in, but there is a sproc sp_spaceused that you can pass an object; For example:
|
|||||
|
|
For a table you can use |
||||
|
|
|
In the management studio, you can right click on the database and go to properties. It will have a size field that will tell you the size of the current database. |
|||
|
|
|
In SQL Server Management Studio, right-click on the table, select "Properties" and move to the "Storage" page. |
|||
|
|
|
Somewhat related - this script could be useful: Finding the biggest tables in a database |
|||
|
|