Method 1: SharePoint designer
================================
1. Open the site in SharePoint designer.
2. Right-click the tree node of the document library you want to view and select Properties.
Method 2: Object Model
============================
The storagemanagementinformation method of the spsite object can be used to read the list of the entire site set and the size information of the document library.
Using(Spsite site =NewSpsite ("Http: // SERVERNAME") {Datatable TBL; TBL = site. storagemanagementinformation (spsite. storagemanagementinformationtype. documentlibrary, spsite. storagemanagementsortorder. Decreasing, spsite. Capacity. Size, 100 );Foreach(Datarow rowInTBL. Rows ){Foreach(Datacolumn ColumnInTBL. columns) MessageBox. Show ("Doc lib name :"+ Row ["Title"]. Tostring () +"Size (bytes ):"+ Row ["Size"]. Tostring ());}}
Method 3: directly fetch data from the database using Stored Procedures
============================
By using this stored procedure, we can obtain the size of all file libraries in byte, including metadata information in the site set.
Procedure proc_getdoclibrarysizes (
@ Siteid uniqueidentifier
);
[MS-WSSCADM]: Windows SharePoint Services content database administrative communications protocol specification
Http://msdn.microsoft.com/en-us/library/cc313099.aspx
SharePoint document library size
Http://sridharu.blogspot.com/2009/02/sharepoint-document-library-size.html