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

  • Home
  • SEARCH
  • 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 8621441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:49:17+00:00 2026-06-12T06:49:17+00:00

I have been tasked with administering some MS SQL Server (Express) databases. My primary

  • 0

I have been tasked with administering some MS SQL Server (Express) databases. My primary DBA experience has been with DB2 LUW and Oracle Database, and I have a hard time understanding the way SQL Server is handling its transaction log.

I have a database set to “full” recovery model and a pre-allocated transaction log file of 100 MB. Using the Windows scheduler, I run daily full backups at 00:00 and log backups every 2 hours, starting at 02:00.

It was my understanding that running the log backups will automatically free up transaction log space, but this does not seem to be the case — the output of “dbcc sqlperf(logspace)” shows that the “log space used%” figure is continually (if slowly) rising.

It is currently at 5%, so I’m not yet in a state of panic, but I am confused about the way SQL server is doing this.

The TSQL statement I use for full backups:

BACKUP DATABASE [xxx] TO DISK = N'E:\backups\xxx.bak' WITH DESCRIPTION = N'blah', RETAINDAYS = 7, NOFORMAT, NOINIT, NAME = N'blah', NOSKIP, REWIND, NOUNLOAD, STATS = 10, CHECKSUM

The TSQL statement for log backups is:

BACKUP LOG [xxx] TO DISK = N'E:\backups\xxx.trn' WITH DESCRIPTION = N'blah', RETAINDAYS = 7, NOFORMAT, NOINIT, NAME = N'blah', NOSKIP, REWIND, NOUNLOAD, STATS = 10, CHECKSUM

So, what do I have to do in order to free up log space?

Thanks in advance for your input.

  • 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-12T06:49:18+00:00Added an answer on June 12, 2026 at 6:49 am

    dbcc sqlperf(logspace) shows approximate usage of log space. Usually this value is higher (but never lower) than actual free space. This article describes in short why log space used is not set to “0” after log backup: http://support.microsoft.com/kb/281879. So your log space used may rise up to 25% and then fall back to e.g. 5%.
    You should not worry about increasing log space used value. As soon as you have regular log backups transaction log will have enough free space (except situation when one single transaction will span for 100 Mb of log file which is not very common situation I guess).

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

Sidebar

Related Questions

I have been tasked to optimize some sql queries at work. Everything I have
I have been tasked with converting some scripts referencing an Informix database to be
I have been tasked with refactoring some components that used xmlbeans to now make
I have been tasked with returning a negative selection from our sql database. I'll
I have been tasked with doing some planning and research for a home grown
I have been tasked with setting up a server for running JBoss presumably the
I have been tasked with creating a SQL query (limited knowledge) that will show
I have been tasked with testing some XSLT code to ensure that it is
I have been tasked with decrypting a file in Java that has been encrypted
I have been tasked with porting a large Java codebase to the Android platform.

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.