Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL Server table sizes.

SQL Server table sizes.

Scheduled Pinned Locked Moved Database
databasesql-servercomsysadminhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Septimus Hedgehog
    wrote on last edited by
    #1

    SS2008. Big database: 17GB total. The database has about 400+ tables. If I select a table, I can right-click it and select its properties and there's a Storage item I can click to get the size of the table. Is there some way I can do that for all tables without going through them one-by-one? I'd like to see where the bulk of the space is being used. Is it possible? EDIT: I found this[^] link which does what I'm looking for. Open a new query in SSMS and drop the code in the example shown in the link. It worked for me without any problem.

    If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

    I 1 Reply Last reply
    0
    • S Septimus Hedgehog

      SS2008. Big database: 17GB total. The database has about 400+ tables. If I select a table, I can right-click it and select its properties and there's a Storage item I can click to get the size of the table. Is there some way I can do that for all tables without going through them one-by-one? I'd like to see where the bulk of the space is being used. Is it possible? EDIT: I found this[^] link which does what I'm looking for. Open a new query in SSMS and drop the code in the example shown in the link. It worked for me without any problem.

      If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

      I Offline
      I Offline
      i j russell
      wrote on last edited by
      #2

      If you have Reporting Services (SSRS) installed, you can right-click on a database in SSMS and select Reports -> Standard Reports -> Disk Usage by Table or Disk Usage by Top Tables.

      S 1 Reply Last reply
      0
      • I i j russell

        If you have Reporting Services (SSRS) installed, you can right-click on a database in SSMS and select Reports -> Standard Reports -> Disk Usage by Table or Disk Usage by Top Tables.

        S Offline
        S Offline
        Septimus Hedgehog
        wrote on last edited by
        #3

        Thanks for that. I do have SSRS installed and it does have the report you described.

        If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups