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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:33:53+00:00 2026-06-11T22:33:53+00:00

I am building a database which contains about 30 tables: The largest amount of

  • 0

I am building a database which contains about 30 tables:

  • The largest amount of columns in a table is about 15.
  • For datatypes I am mostly using VarChar(50) for text
  • and Int og SmallInt for numbers.
  • Identity columns is Uniqueidentifiers

I have been testing a bit filling in data and deleting
again. I have no deleted all data, so everey table is empty.
But, if I look inside the properties of the database in
Management Studio, the size says 221,38 MB!

How comes that? Please help, I am getting notifications
from my hosting company that I am exceeding my limits .

Best regards,
🙂

  • 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-11T22:33:54+00:00Added an answer on June 11, 2026 at 10:33 pm

    I would suggest that you look first at the recovery mode for the database. By default, the recovery mode is FULL. This fills the log file with all transactions that you perform, never deleting them until you do a backup.

    To change the recovery mode, right click on the database and choose Properties. In the properties list, choose the Options (on the right hand pane). Then change the “Recovery model” to Simple.

    You probably also want to shrink your files. To do this, right click on the database and choose Tasks –> Shrink –> Files. You can shrink both the data file and the log file, by changing the “File Type” option in the middle.

    Martin’s comment is quite interesting. Even if the log file is in auto-truncate mode, you still have the issue of deletes being logged. If you created large-ish tables, the log file will still expand and the space not recovered until you truncate the file. You can get around this by using TRUNCATE rathe than DELETE:

    truncate table <table>
    

    does not log every record being deleted (http://msdn.microsoft.com/en-us/library/ms177570.aspx).

    delete * from table
    

    logs every record.

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

Sidebar

Related Questions

I'm building a table using jsp. The table contains 9 columns, some of the
Scenario I am building a database that contains a series of different tables. These
I'm building a word anagram program that uses a database which contains one simple
I am building a database which consists of a table of category, customer table
I'm building an application around a database(which was built by someone else, so changing
I am building an application which stores GPS locations in a SQLite database and
I am building an application in C++ which uses sqlite3 as an embedded database.
I'm building a database for making hotel reservations. One table called reservations holds the
I have MySQL database, where I store the following BLOB (which contains JSON object)
I'm building an application on top of a legacy database (which I cannot change).

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.