Solved

SQL 2005 logs not flushing and taking up space

Posted on 2009-05-05
4
711 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:Rahul Misra
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:
Rahul Misra 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
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…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

772 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