Unix Technical Forum

Re: Find the size of all tables in a database

This is a discussion on Re: Find the size of all tables in a database within the Sybase forums, part of the Database Server Software category; --> Disclaimer: I found this on one of the Sybase utility sites ran by end users. This was 5 or ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 04:22 PM
Tom Brehony
 
Posts: n/a
Default Re: Find the size of all tables in a database

Disclaimer: I found this on one of the Sybase utility sites ran by end
users. This was 5 or 6 years ago and I can't
remember which one. I would give credit if I could remember where. Sorry!

Uncomment the commented line if you want to include tables with no entries.

Tom.
----------------------------------------------------------------------------
--------

select o.crdate, o.name, rowcnt(i.doampg) from sysobjects o, sysindexes i
where type = 'U' and o.id = i.id
/* and rowcnt(i.doampg)!= 0 */
order by rowcnt(i.doampg) desc, o.crdate, o.name
go


"Praim Sankar" <psankar@ibc.ca> wrote in message
news:57ad4eb6.0403301259.6849bb5@posting.google.co m...
> I need to find out the size of all tables in a SYBASE database.
> Does anyone have a script that will give me the number of rows and the
> size of the table for each table in a database.
>
> Thanks,
>
> Praim Sankar
> psankar@ibc.ca



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:28 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com