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 8364639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:28:22+00:00 2026-06-09T12:28:22+00:00

When I run the Top disk usage by table report in Sql Server Management

  • 0

When I run the “Top disk usage by table” report in Sql Server Management Studio, it shows one of my tables using about 1.8GB of disk space:

enter image description here

The table definition:

CREATE TABLE [dbo].[RecipeItems](
    [wo_id] [varchar](50) NOT NULL,
    [invent_id] [varchar](50) NOT NULL,
    [invent_dim_id] [varchar](50) NULL,
    [ratio] [float] NOT NULL
) ON [PRIMARY]

I’d roughly estimate that with each row takes less than 200 bytes, and with only 7K records, this shouldn’t take up more than 1-2MB. But obviously, this is not the case. What might be the reason this table uses so much storage?

  • 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-06-09T12:28:23+00:00Added an answer on June 9, 2026 at 12:28 pm

    Chances are that a lot of data has been updated or deleted. Since it is a heap updates can lead to forwarding records. I would try this first:

    ALTER TABLE dbo.RecipeItems REBUILD;
    

    Next I would consider adding a clustered index.

    Do not run a shrink database command to fix this table, PLEASE.

    When you perform your “delete all and bulk insert” I would do it this way, running a rebuild in the middle:

    TRUNCATE TABLE dbo.RecipeItems;
    ALTER TABLE dbo.RecipeItems REBUILD;
    BULK INSERT dbo.RecipeItems FROM ...
    

    If you add a clustered index you may want to do this a little differently. And if you can’t use TRUNCATE, keep using DELETE, obviously. TRUNCATE will cause less log churn if the table is eligible, and since you are wiping out the table and re-populating it, it’s not something you seem to need to recover from. In fact you might just consider dropping the table and re-creating it each time.

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

Sidebar

Related Questions

In SQL Server Management Studio, if I run a query like SELECT TOP 1000
When I run heroku run top on my server I see a very high
I'm running Mac OS 10.6. I want to run top to get memory usage,
So lately when I run queries on huge tables I'll use the the top
When you right-click on database, Reports...Disk Usage, I get a report. Because I have
I run a REST-API build on top of Sinatra. Now I want to write
I want to run Firefox directly on top of X for a kiosk, but
I am trying to run this dreadfully simple command in Bash java -cp nasa-top-secret.jar
Quick background for those interested, I have a master detail table(options date), about 20
I run my google app engine application in one of two ways... Directly by

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.