SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Error log reports database log is truncated right before differential backup


Error log reports database log is truncated right before differential backup

Author
Message
Elizabeth.Block
Elizabeth.Block
Right there with Babe
Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)

Group: General Forum Members
Points: 784 Visits: 702
I've got a SQL Server 2000 system that has many databases in Full recovery with full, diff, and tlog backups. I'm seeing an unusual error that says "Database log truncated". It only shows as an error in the Application Event log. In the SQL Error log it doesn't show it as an error.

Here's the time sequence:
5AM Database log backup of db A
6AM Error: Database log truncated: Database: A
6:01AM Database differential changes backed up: Database: A
So my question is, how/why would the database log be truncated an hour after it has been backed up? I don't know if the Application Event log is erroneously reporting an error or if I have an actual problem.

Any help would be greatly appreciated!
Lynn Pettis
Lynn Pettis
SSC Guru
SSC Guru (99K reputation)SSC Guru (99K reputation)SSC Guru (99K reputation)SSC Guru (99K reputation)SSC Guru (99K reputation)SSC Guru (99K reputation)SSC Guru (99K reputation)SSC Guru (99K reputation)

Group: General Forum Members
Points: 99948 Visits: 39000
Check the differential backup process for the database. It may have a truncate log in it just before the differential backup. Not something I'd want being done.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
ALZDBA
ALZDBA
SSC-Dedicated
SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)

Group: General Forum Members
Points: 31419 Visits: 8986
- If the time interval is near constant, just start a sqlprofiler trace to capture all the needed and analyse it afterward.

- how are the backups being created at your systems ? SQLAgent scheduled jobs ?
check all sqlagent jobs to they don't contain a "backup log with truncate only" statement (we've seen that at some of our systems and had to contact the corresponding dev teams to clarify and remove them )

select J.name, suser_sname(J.owner_sid) as Owner, J.enabled, JS.*
from msdb..sysjobs J
inner join msdb..sysjobsteps JS
on JS.job_id = J.job_id
where JS.command like '%backup%truncate%'
order by Owner, name



Johan


Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


press F1 for solution, press shift+F1 for urgent solution :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
Elizabeth.Block
Elizabeth.Block
Right there with Babe
Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)Right there with Babe (784 reputation)

Group: General Forum Members
Points: 784 Visits: 702
Thank you both. I found the issue. Our backup procedure was using Backup log @Database with truncate_only, which truncates the transaction log. Immediately after that it made a differential backup but the truncate_only would invalidate the previous log backups. We'll be fixing this today... Oi Vay!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search