I think most people know how to do this via the GUI (right click table, properties), but doing this in T-SQL totally rocks.
original title: "I need to know how much disk space a table is using in SQL Server"
I think most people know how to do this via the GUI (right click table, properties), but doing this in T-SQL totally rocks.
Penso che la maggior parte delle persone sappia come farlo tramite la GUI (tabella del tasto destro del mouse, proprietà), ma farlo in T-SQL è totalmente incredibile.
Questo è il riepilogo dopo la traduzione, se è necessario visualizzare la traduzione completa, fare clic sull'icona "traduci"
sp_spaceused tableName
where tableName is the name of the table you want to know....
Check out this, I know it works in 2005 (Microsoft Documentation):
Here is is for the pubs DB
Returns the size and max_size.