
For SAP Business Suite or NetWeaver running on SAP ASE, the sp_helpdb system procedure provides a useful overview of database allocation. Use an authorized database connection.
List all databases
sp_helpdb
goReview the db_size column for allocated database space. To inspect the SAP database in more detail, supply its actual database name.
sp_helpdb 'SAPDB'
goReplace SAPDB with your database name. The detailed result shows device fragments and usage information, helping distinguish data and log allocations.
Interpret the result
Allocated database size is not the same as the volume of business data, available log space, physical device file size or filesystem capacity. Check free data and transaction log space in the supported database monitoring tools, and compare these figures with device and storage utilization before considering expansion.
The queries above are read-only. Do not shrink a device or resize a database based solely on this output.
SAP Help: sp_helpdb
SAP Help: Using sp_helpdb to Find Database Device Names and Options
SAP Note: 3718302 (related topic).



