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

  • Hi all,
    I am an accidental DBA that has been assigned to monitor and optimize the database (SQL Server 2016).
    I am receiving the below error an is not clear to me how to fix it

  • The transaction log for database '' is full due to 'ACTIVE_TRANSACTION'
  • In fact it has occurred only two times till now while there were some long running jobs that blocked each other (an update in the table from a Agent job and a select in the same table from a SSRS report).
    The update uses also e xp_cmdshell that remains open during all the time.

    The recovery model of the database is simple and i do not see any problem with the available space in the server.
    Please can anyone help me with this issue or just direct me to the appropriate direction to further investigate.

    Thank you
    Orni

  • Orni - Wednesday, March 13, 2019 11:53 AM

    Hi all,
    I am an accidental DBA that has been assigned to monitor and optimize the database (SQL Server 2016).
    I am receiving the below error an is not clear to me how to fix it

  • The transaction log for database '' is full due to 'ACTIVE_TRANSACTION'
  • In fact it has occurred only two times till now while there were some long running jobs that blocked each other (an update in the table from a Agent job and a select in the same table from a SSRS report).
    The update uses also e xp_cmdshell that remains open during all the time.

    The recovery model of the database is simple and i do not see any problem with the available space in the server.
    Please can anyone help me with this issue or just direct me to the appropriate direction to further investigate.

    Thank you
    Orni

    Another thing to check is that it could be that the log has a max size set and you have reached that limit. You can execute sp_helpfile in the database to see the files, max size, growth settings. Or in SSMS, right click on the database, select properties and select Files for the page on the left. Then you can view the same properties.

    Sue

  • I have been getting those messages at the QA and Development instances and its like Sue_H said, check your log size, when its full that's the message it will throw.
    Change the max size.

  • Orni - Wednesday, March 13, 2019 11:53 AM

    Hi all,
    I am an accidental DBA that has been assigned to monitor and optimize the database (SQL Server 2016).
    I am receiving the below error an is not clear to me how to fix it

  • The transaction log for database '' is full due to 'ACTIVE_TRANSACTION'
  • In fact it has occurred only two times till now while there were some long running jobs that blocked each other (an update in the table from a Agent job and a select in the same table from a SSRS report).
    The update uses also e xp_cmdshell that remains open during all the time.

    The recovery model of the database is simple and i do not see any problem with the available space in the server.
    Please can anyone help me with this issue or just direct me to the appropriate direction to further investigate.

    Thank you
    Orni

    How big is the log file in question?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Viewing 5 posts - 1 through 4 (of 4 total)

    You must be logged in to reply to this topic. Login to reply