Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Database table sizes

0 Likes
1,126

Hi Experts,

I need to find out database table row count and the width for all the tables in the database.

and need to consider the performance also while finding out the above details.

Thanks,

kumar

5 REPLIES 5
Read only

RaymondGiuseppi
Active Contributor
0 Likes
897

Try transactions like DB02 and ST04. (Look at documentation like [Database Administration|http://help.sap.com/saphelp_nw70/helpdata/en/29/7d4ed11dc11d45a73850df6e8a1bac/frameset.htm]) - which database do you use : Oracle, MS SQL, DB2, MaxDB, etc. ?

Regards,

Raymond

Read only

venkat_o
Active Contributor
0 Likes
897

Hi Kumar, <li>DB table rows are found like below.


DATA:table_count.
SELECT COUNT(*) FROM mara INTO table_count.
<li>Use DB6PMHT_HD (DB6: Summary Record of Table and Index Space Statistics) table to check the database table size.

    REPORT ztest_notepad.
   TABLES :db6pmht_hd.

   SELECT  SINGLE *
     FROM  db6pmht_hd
    WHERE  stattype    = 'D'    "D-daily
      AND  objectname  = 'MARA'
      AND  objecttype  = 'T'.   "T-table.

   WRITE:/ 'Table', 'MARA', 'size', db6pmht_hd-sizekb.
Thanks Venkat.O

Read only

Former Member
0 Likes
897

hai,

Please Check DD09L table Also, Technical Settings Are given there, May be helpful For u.

Read only

0 Likes
897

Hi all,

And the database table row count which i need to find is client specific.

Thanks,

Kumar

Read only

0 Likes
897

Hi all,

I have table 'DBSTATHORA' , if the database is Oracle

and 'MSSDBSTATT' table ,if the database is MSSql to find out the database table rows.

But using the above said tables i am getting total rows irrespective of clients.

Instead i need to have only rows for specific client.

Please help me out.

Thanks in advance,

Kumar