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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:35:51+00:00 2026-05-13T06:35:51+00:00

How do I get the current size of the transaction log? How do I

  • 0

How do I get the current size of the transaction log? How do I get the size limit?

I’d like to monitor this so I can determine how often I need to backup the transaction log.

I usually have a problem with the transaction log when I perform large operations.

  • 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-13T06:35:51+00:00Added an answer on May 13, 2026 at 6:35 am

    Based on SQL Server 2005, try this

    SELECT (size * 8)/1024.0 AS size_in_mb,
      CASE WHEN max_size = -1 THEN 9999999   -- Unlimited growth, so handle this how you want
       ELSE (max_size * 8) / 1024.0
            END AS max_size_in_mb
    FROM <YourDB>.sys.database_files
    WHERE data_space_id = 0   -- Log file
    

    Change YourDB to your database name

    For an overall of all database sizes try DBCC SQLPERF

    DBCC SQLPERF (LOGSPACE)
    

    This should work in SQL 2000/2005/2008

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

Sidebar

Related Questions

This isn't as malicious as it sounds, I want to get the current size
How do I get the current size of a matrix stack (GL_MODELVIEW, GL_PROJECTION, GL_TEXTURE)
I wish to get the current size for an image being displayed with TImage,
I'm trying to get the size of the top level directories under the current
I need to solve the following question which i can't get to work by
Is there a way in Delphi to get the currect application's exe size in
How do you get the current directory where your app is running?
How do I get the current wallpaper on a Mac? Just point me to
How do I get the current time in Python?
Is it possible to get the current source line number in Perl? The equivalent

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.