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. Complicated size calculation

Complicated size calculation

Scheduled Pinned Locked Moved Database
databasehelp
2 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.
  • M Offline
    M Offline
    Member 3426936
    wrote on last edited by
    #1

    All, I have a slightly complicated issue, I have a Sql 2005 DB which is like 20GB right now, It has different tables related like Projects->Facilities->Locations->Pictures What I am looking for is the size occupied by an individual project, Lets say Projects Table has the following 1 Sample Project One 2 Sample Project Two Facilities has the following 1 1(ProjectId) Facility One 2 1(ProjectId) Facility Two 3 2(ProjectId) Facility Three and Locations and pictures are related similarly using FacilityId and LocationId Now I need the data occupied by the entire Project One including the data related to Project One in all other tables. Hope this is clear, I welcome any suggestions, Thanks in advance

    M 1 Reply Last reply
    0
    • M Member 3426936

      All, I have a slightly complicated issue, I have a Sql 2005 DB which is like 20GB right now, It has different tables related like Projects->Facilities->Locations->Pictures What I am looking for is the size occupied by an individual project, Lets say Projects Table has the following 1 Sample Project One 2 Sample Project Two Facilities has the following 1 1(ProjectId) Facility One 2 1(ProjectId) Facility Two 3 2(ProjectId) Facility Three and Locations and pictures are related similarly using FacilityId and LocationId Now I need the data occupied by the entire Project One including the data related to Project One in all other tables. Hope this is clear, I welcome any suggestions, Thanks in advance

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Never having addressed this requirement this is a guess only. I would take a look at the properties in SSMS, I'm sure the tables have size and rowcount in their properties, this means it is stored in a sys table somewhere. It now becomes a search and mathematics problem. Good Luck

      Never underestimate the power of human stupidity RAH

      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