dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL
Expertise: Intermediate
Jun 22, 2017

The sp_spaceused Procedure in SQL

The sp_spaceused special SQL procedure displays the number of rows, disk space reserved, disk space used by a table, or indexed view in the current database. Here is a small example of how to use it:

EXEC sys.sp_spaceused @objname = N'DatabaseName.TableName';
Hannes du Preez
 
Thanks for your registration, follow us on our social networks to keep up-to-date