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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:52:37+00:00 2026-06-16T02:52:37+00:00

In the data access layer of my teams ASP.NET application, I run stored procedures

  • 0

In the data access layer of my teams ASP.NET application, I run stored procedures against our database through the use of the .NET SQLClient. After adding new code to allow an insert operation on the database, I tested the code, and received the following exception:

The transaction log for database 'DBName' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases

I verified that I receive the same message when attempting insert operations from within MS SQL Server Management Studio. I was concerned because I recently added three two triggers two the database to perform some insertion of data based on insert and update to certain tables, and I thought potentially I had incurred an infinite loop or something of that nature.

However, based on other instances of this problem online, it does not seem like a problem generally caused by triggers or a spinning query. I queried against the log_reuse_wait and log_reuse_wait_desc columns and returned the following:

2 | LOG_BACKUP

Also, the query SELECT [name], recovery_model_desc, log_reuse_wait_desc
FROM sys.databases
returns:

name | recovery_model_desc| log_reuse_wait_desc

DBName|   FULL            | LOG_BACKUP

In which the first column is log_reuse_wait and the second is log_reuse_wait_desc.
Based on the definitions for the codes on msdn , I need to perform a log backup and then the log can be automatically truncated, allowing for further operations on the database. Is that a correct assumption? Is this something that could be caused by incorrectly coded triggers, or is more of a routine maintenance task, incurred by numerous transactions on the database?

EDIT:

The query select type_desc, size, max_size from sys.database_files returns:

   type_desc | size | max_size
1| ROWS      |  512 | -1
2| LOG       |  64  |  -1
  • 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-16T02:52:38+00:00Added an answer on June 16, 2026 at 2:52 am

    If your database is in FULL recovery mode, the log is not truncated (truncated is a poor word, I wish they’d chosen something else) until a log backup is performed. Basically, when you put a database in FULL recovery mode, you are telling SQL Server that you want point-in-time recovery. In order to do that, SQL Server needs the full log chain from the last full (or differential) backup, and in order to do that, it does not re-use (‘truncate’) log space until you have backed the log up.

    This is a routine operational matter for databases that are in FULL recovery mode. If you do not need point-in-time recovery, then set your database to SIMPLE recovery mode – this will automatically reuse log space, but you will only be able to recover to your last full/differential backup.

    If you do need point-in-time-recovery, then you need (well, your DBA team needs) to set up a maintenance plan that performs a log backup at regular intervals.

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

Sidebar

Related Questions

I am doing an asp.net mvc application having a Data Access Layer (DAL). Having
I'm designing a Data Access layer for an C#/ASP.net application and I have a
I have a data access layer (DAL) that is written in ASP.NET 3.5 and
I am using NHibernate to as the Data Access layer for my ASP.NET MVC
We have our Data Access Layer setup to use repositories, services, and specifications (for
I have created a Data Access Layer using .NET. Everywhere that I update a
we are using data sets as our data access layer. currently there are some
I am looking for a data access layer for ado.net. I am not interested
I'm attempting to create Data Access Layer for my web application. Currently, all datatables
I'm using ActionScript3 to develop a Data Access Layer for an application another developer

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.