Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Posts
    101

    Unanswered: query to give all table sizes on a database (was "query help")

    Hi,
    Does anyone has query to give all table sizes on a database?
    Appreciate your help.
    Thanks

  2. #2
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,365
    Provided Answers: 1

    give all table sizes

    Check sp_spaceused

    Take the output from:
    select 'exec sp_spaceused '+name from sysobjects where type='U'

    and execute it on your database (assuming statistics is up to date)

  3. #3
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    I was looking at this the other day.
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=62722
    Testimonial:
    pootle flump
    ur codings are working excelent.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •