Situatie
Solutie
Pasi de urmat
Method 1: Using the GUI
- Connect to the database in SSMS
- Expand the database in the Object Explorer
- Expand the Tables folder
- Right-click on the table whose size you want to check and select Properties
- In the Properties window, go to the Storage page.
- You will see information such as:
- Data Space Used: Size of the data.
- Index Space Used: Size of the indexes.
- You will see information such as:
Method 2: Using the Built-In sp_spaceused Stored Procedure
- Open a new query window in SSMS.
- Run the following command:
- The output will show:
- Reserved: Total space reserved for the table (data + index + unused)
- Data: Space used by the table data
- Index_size: Space used by indexes
- Unused: Unused space within the table.
Leave A Comment?