----start-----
USE AdventureWorks;
GO
EXEC sp_spaceused 'PRODUCTION.Product';
GO
----end-----
2. Displaying updated space information about a database
USE SeA_Samples
GO
EXEC sp_spaceused @updateusage = 'TRUE';
GO
USE SeA_Samples
GO
EXEC sp_spaceused @updateusage = 'TRUE';
GO
Source:
ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_6tsql/html/c6253b48-29f5-4371-bfcd-3ef404060621.htm
ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_6tsql/html/c6253b48-29f5-4371-bfcd-3ef404060621.htm