Share via

The transaction log for database 'DDE' is full due to 'ACTIVE_TRANSACTION'

San 0 Reputation points
2023-09-04T14:22:21.69+00:00

Dear Experts,

SSIS pacakge failed witb below error. Please help me

TruncateAndoadLoadTable Fact:Error: Executing the query "EXEC ETL.LoadTable" failed with the following error: "The transaction log for database 'DDE' is full due to 'ACTIVE_TRANSACTION'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

SQL Server | Other

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 133.9K Reputation points MVP Volunteer Moderator
    2023-09-04T20:21:37.0366667+00:00

    In addition to Rahul's answer, there are two possible reasons for the failure with ACTIVE_TRANSACTION:

    1. There is a transaction that has been left uncommitted somewhere, maybe in a query window in SSMS. And to this end you can use DBCC OPENTRAN.
    2. It is the very stored procedure that you are running that is filling up the log.
    2 people found this answer helpful.
    0 comments No comments

  2. RahulRandive 10,506 Reputation points
    2023-09-04T16:08:51.09+00:00

    Hi @San

    The 'ACTIVE_TRANSACTION' part explains that there is an active transaction in the database and because of this, the transaction log file for the database cannot be truncated. To resolve this issue, need to find the active transaction and you may need to stop the activity

    You can execute below command to find the active transaction.

    use DDE

    go

    dbcc opentran()

    Here are the common reasons for a full transaction log

    The appropriate response to a full transaction log depends on what conditions caused the log to fill. Common causes include:

    1. Log not being truncated
    2. Disk volume is full
    3. Log size is set to a fixed maximum value or autogrow is disabled
    4. Replication or availability group synchronization that is unable to complete

    Please find detailed Microsoft documentation on "Troubleshoot a Full Transaction Log (SQL Server Error 9002)" below-

    https://learn.microsoft.com/en-us/sql/relational-databases/logs/troubleshoot-a-full-transaction-log-sql-server-error-9002?view=sql-server-ver16

    Thank you!

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.