Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7434997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:59:10+00:00 2026-05-29T09:59:10+00:00

I’m trying to make my database smaller but I have no clue where all

  • 0

I’m trying to make my database smaller but I have no clue where all the data is spent.

Is there software that allows one to identify how much size a table and/or a column uses?

Are there other things besides the tables that would take space? Does the software support listing that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:59:11+00:00Added an answer on May 29, 2026 at 9:59 am

    Leaving aside the inherrent costs of the tables, indexes etc, which either you can’t or may not really want to do anything about, and assuming you mean disk foot print.

    If you had a table with an int and a VarChar(128) int is 4, varchar(128) is so that’s 132 bytes * number of rows.

    Is this for downloading / installation? If so you might find googling DBCC ShrinkDB, Recovery options useful.

    Careful where you go with this, swapping your ints to words, or truncating your varchars means good bit of messing about in your code. Equally normalising/denormalising has it’s own costs. Also the filesize you want to pay atention to is backup not the mdb on disk which by default is always grow and so will be at the maximum ever capacity. If you’ve been developing a lot with it and not backing up, it could be stupidly high.

    Right
    First each time you run out of space compact will from by 1 to 16 pages dependant on new needs.
    Second run out of space means there isn’t enough to store row contiguously, and CE dpoes not recover space unless you compact, so it’s more than posiible if you do a lot of inserts then some deletes, the some more inserts some or all of the space that was used will not be reused.

    So before you try this compact, otherwise it will be of dubious value

    In code or attach SQL Server manager

    select *

    from INFORMATION_SCHEMA.Columns

    will give you a nice bunch of info about your db

    then it’s just a question of writing a query to sum up based on Data_type and Character_Maximum. That however will give you the theoretical maximumsize per row. so NVarChar(50) has a maximum of 100 bytes, (image is a gig !) but if it’s got ‘Fred’ in it it will be 8..
    Once you have a row size multiply it by count for the table
    Actual sizes would mean whapping through and doing a datasize for each actual column on every row, which might be difficult with CE.

    Or you could do it all in code,
    If you want to havea whack at it and come back withn issues be my guest, but you aren’t paying me enough to do it for you. 🙂

    Though I just found this, hurrah for google, maybe it will do what you want.

    SQl Compact Query Analyser

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I have a text area in my form which accepts all possible characters from
I know there's a lot of other questions out there that deal with this
I want to construct a data frame in an Rcpp function, but when I
I'm trying to create an if statement in PHP that prevents a single post
I have a view passing on information from a database: def serve_article(request, id): served_article
I have a reasonable size flat file database of text documents mostly saved in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.