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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:17:35+00:00 2026-06-16T13:17:35+00:00

I have a database in SQL Server 2008 R2 that has millions of files

  • 0

I have a database in SQL Server 2008 R2 that has millions of files stored in it as varbinary blobs. I set up a process last week to do the following:

  1. Use some Entity Framework code to get the row (i.e. entity) that has the blob.
  2. Copy the blob stream to an object store.
  3. Update entity in the database with the new Object ID from the store.

I have 30 threads doing this constantly and the process will still take several days. A couple days ago the database log file filled up and I’m sure it had to be caused by this process. I decided point-in-time backups are not critical for this database and set the database to use the Simple recovery model. Then yesterday I got errors from my process again that said the log file filled up! How is this possible in simple mode?! Any idea what I can do to stop this from happening? When I monitor the log file SQL Server lets it get to 7% full and then truncates it down to zero so I’m super confused. It seems as though the log file starts to grow unchecked when the full backup begins…

  • 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-16T13:17:36+00:00Added an answer on June 16, 2026 at 1:17 pm

    Even in Simple Recovery mode, SQL Server will populate the log file in order to maintain ACID compliance and permit rollbacks (or “roll-forwards” in certain-disaster recovery scenarios). So you need to have enough room in there to at least handle the transactions that it may receive at one time and if not it will either autogrow or present an error.

    Now as a practical matter you have a couple of options. The simplest is to just give it sufficient space to handle the transactions. Another is to break it up into fewer transactions since in Simple Recovery it will permit that space to be reused once the transaction is fully committed and finalized.

    Edit for clarity and responding to comments: SQL Server will place almost all actions (there are some exceptions, but they aren’t material here) in an implicit transactions even if an explicit one is not called. So, if you say execute a command that inserts a million rows it will have an implicit transaction for that insert and even in simple recovery mode all of those million rows will impact the transaction log until the transaction is fully committed and complete. If you want it to release the space faster, rewrite your code so that instead of one statement inserting a million rows you have ten statements inserting a hundred thousand each.

    It wasn’t clear from your question that it was only growing during the full backups, but yes the backup process does affect its ability to release space in the log while it is occurring. That is because a full backup also includes the data from the log file so the Server needs to make sure that information is available during the backup process. There is a related discussion at In Recovery.

    I would generally be extremely reluctant to postpone a scheduled backup, but it may help in this particular scenario. It also sounds like breaking your transactions up into smaller pieces may ultimately be the way to go though.

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

Sidebar

Related Questions

We have a SQL Server 2008 database that has stored procedures to handle reads/writes/etc.
I have an SQL Server 2008 database with a table that has a column
I have a SQL Server 2008 database with millions of records. One field has
I have a SQL Server 2008 database that has two tables. These two tables
I have a SQL Server 2008 database that has a Trigger. This trigger is
I have a database (SQL server express 2008) which has a column that is
I have a database table (SQL Server 2008 R2 Express edition) that has a
I have a SQL Server 2008-R2 database that has a table that is storing
I have a process that is inserting data into a database (SQL Server 2008)
I use SQL Server 2008. I have a database (Database1) that has one table

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.