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.
Úgy gondolom, hogy a legtöbb ember tudja, hogyan kell ezt megtenni a grafikus felhasználói felületen (jobb egérgombbal rendelkező táblázat, tulajdonságok), de ezt a T-SQL alkalmazásban teljesen megkönnyíti.
Ez az összefoglalás a fordítás után. Ha meg szeretné tekinteni a teljes fordítást, kattintson a "fordítás" ikonra
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.