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.
मुझे लगता है कि ज्यादातर लोग यह जानते हैं कि यह GUI (राइट क्लिक टेबल, प्रॉपर्टीज) के माध्यम से कैसे किया जाता है, लेकिन टी-एसक्यूएल पूरी तरह से चट्टानों में ऐसा कर रहा है।
यह अनुवाद के बाद का सारांश है, अगर आपको पूरा अनुवाद देखने की आवश्यकता है, तो कृपया 'अनुवाद' आइकन पर क्लिक करें
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.