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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:53:41+00:00 2026-05-20T05:53:41+00:00

My general question is, say you have a SQL Server 2005 database that’s 20G

  • 0

My general question is, say you have a SQL Server 2005 database that’s 20G in size and a log file that is empty. If you run a series of updates that touch each table and each row exactly once, will the log file grow to the same size as the database? Or will this depend on other factors?

I’m asking this question because of a database update I’m performing. I have a database used by some proprietary software. Updates are made to every table and every field. The software does not have a verbose output, just a checkbox for “not done”/”done”. Because there’s no descriptive output, I’m trying to figure out how to tell if it’s close to the end.

So, is the log file likely to be the same size as the database when everything has been touched? Or does the log file contain different information that doesn’t depend on the database size in this way?

  • 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-20T05:53:41+00:00Added an answer on May 20, 2026 at 5:53 am

    As a rule of thumb the size of log generated for any update is about 1.5x the size of the update. So if you update 20Gb worth of data, you generate 30Gb worth of log.

    But there are some things to consider:

    1. Size of log generated does not need necessarily translates to log file size. Under SIMPLE recovery model the log file used can be automatically recycled as soon as the transaction commits (I’m omitting some details for brevity) so 30gb log size can fit in a 1gb file, by continuously recycling the used log. Under FULL and BULK recovery model the log gets similarly recycled when a database log backup is performed. So if you don’t update everything in one transaction, your log should recycle and not grow.

    2. Some operations can be minimally logged. TRUNCATE, INSERT BULK being the typical examples. Minimal logging takes a tiny fraction of normal logging.

    Right now you should be looking at the log percent used (DBCC SQLPERF(logspace)) and also monitor if any log growth events are occurring.

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

Sidebar

Related Questions

I've a general question - Lets say I've an SQL Server 2008 DB ,
General question: Let's say you have a list of vertices that you pass into
Lets say I have a table in a sql server 2000 database called TransactionType:
I've got a general curiosity question. Say I have 1 master server (for writes)
I have a general question about using ADO together with SQL-server 2008express (Microsoft). When
general question is i like to build logger class that writes to single log
I have a general question about the new Django 1.3 static file framework. I
I have a general question about inheritance in the .NET framework, lets say you
Mine is a general question on XML parsing practices. Lets say we have an
This is a general question on programming style. Let's say I have an object

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.