Solved

SQL 2005 logs not flushing and taking up space

Posted on 2009-05-05
4
708 Views
Last Modified: 2013-12-01
Hi Guys,
I've got an SQL database that takes up what little space we have on the drive, we run the shrink command on it and manage to get back about 7GB each time but we also have Symantec Backup Exec installed with the SQL agent and were under the impression that this would flush the logs when the backup had completed.
Does having the database in Simple or Full mode affect this and if not then what could be going wrong or what can we do ?

Thanks
0
Comment
Question by:Netexperts
  • 2
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Iamthecreator
ID: 24303314
Backup Exec does not Flush the logs when you perform a FULL DATABASE BACKUP
Run a backup of the LOGS

Backing up SQL transaction logs
http://support.veritas.com/docs/300158  

Setting backup options for SQL
http://support.veritas.com/docs/310364  




Also check the following for a better understanding of how SQL backups work

How do the Simple, Bulk-logged, and Full Recovery modes in Microsoft SQL 2000  apply to Backup Exec?
http://support.veritas.com/docs/236600  

The size of the log file does not decrease when performing a backup operation of  Microsoft SQL although the "truncate log on checkpoint" option was selected
http://support.veritas.com/docs/233168  

After performing "Log - Backup Transaction Log" of SQL databases using Backup  Exec, the size of the physical log file remains unchanged.
http://support.veritas.com/docs/270043  

0
 
LVL 1

Author Comment

by:Netexperts
ID: 24304072
Thanks for that but the information isn't that clear. Does this mean that i need to setup a seperate Backup Exec job to just backup the Transaction logs ?

Thanks
0
 
LVL 23

Accepted Solution

by:
Iamthecreator earned 500 total points
ID: 24304156
Yes, as the TRUNCATE option works only for LOG backups not when you backup the databases
Also when you run the log backup the LOGS are marked for TRUNCATION and then deleted by SQL and not BEWS
Check the articles for more information on setting up LOG BACKUP
0
 
LVL 1

Author Closing Comment

by:Netexperts
ID: 31577952
Makes sense now.
Many Thanks
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now