Home All Groups Group Topic Archive Search About

Transaction Log Backup Doesn't Truncate Log



Author
9 Dec 2008 3:32 PM
ryanmhuc@yahoo.com
I was under the impression that a backup of the transaction login SQL
Server 2005 a transaction log will truncate upon a transaction log
backup. Is this correct?

I have some databases that are in full recovery mode that when a
backup of the transaction log is made the transaction log does not
truncate itself. There are no open transaction (DBCC OPENTRAN) on the
database.

Author
9 Dec 2008 3:45 PM
Tibor Karaszi
How do you determine that the "log doesn't truncate"?

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


<ryanm***@yahoo.com> wrote in message
Show quoteHide quote
news:765a140c-bca1-4608-bdc5-edcb3f1783a1@k36g2000pri.googlegroups.com...
>I was under the impression that a backup of the transaction login SQL
> Server 2005 a transaction log will truncate upon a transaction log
> backup. Is this correct?
>
> I have some databases that are in full recovery mode that when a
> backup of the transaction log is made the transaction log does not
> truncate itself. There are no open transaction (DBCC OPENTRAN) on
> the
> database.
Are all your drivers up to date? click for free checkup

Author
12 Dec 2008 9:05 PM
ryanmhuc@yahoo.com
On Dec 9, 10:45 am, "Tibor Karaszi"
<tibor_please.no.email_kara***@hotmail.nomail.com> wrote:
Show quoteHide quote
> How do you determine that the "log doesn't truncate"?
>
> --
> Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/tibor_karaszi
>
> <ryanm***@yahoo.com> wrote in message
>
> news:765a140c-bca1-4608-bdc5-edcb3f1783a1@k36g2000pri.googlegroups.com...
>
>
>
> >I was under the impression that a backup of the transaction login SQL
> > Server 2005 a transaction log will truncate upon a transaction log
> > backup. Is this correct?
>
> > I have some databases that are in full recovery mode that when a
> > backup of the transaction log is made the transaction log does not
> > truncate itself. There are no open transaction (DBCC OPENTRAN) on
> > the
> > database.- Hide quoted text -
>
> - Show quoted text -

Using 2 methods:

1. DBCC SQLPERF(LOGSPACE);
2. Via SQL Studio: Database -> Tasks -> Shrink -> Files : then
selected Log for the file type and seeing the Available free space.
Author
13 Dec 2008 10:41 AM
Tibor Karaszi
OK, good. So you are looking as percentage used and you are not
expecting the log file to become smaller. That is indeed what we mean
by "truncating" (or as I like to think of it "emptied").

Next step I would take would be DBCC LOGINFO. The command it explained
briefly at http://www.karaszi.com/SQLServer/info_dont_shrink.asp.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


<ryanm***@yahoo.com> wrote in message
news:b6a6baba-4d72-4569-8923-34b09336ae38@e18g2000vbe.googlegroups.com...
On Dec 9, 10:45 am, "Tibor Karaszi"
<tibor_please.no.email_kara***@hotmail.nomail.com> wrote:
Show quoteHide quote
> How do you determine that the "log doesn't truncate"?
>
> --
> Tibor Karaszi, SQL Server
> MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/tibor_karaszi
>
> <ryanm***@yahoo.com> wrote in message
>
> news:765a140c-bca1-4608-bdc5-edcb3f1783a1@k36g2000pri.googlegroups.com...
>
>
>
> >I was under the impression that a backup of the transaction login
> >SQL
> > Server 2005 a transaction log will truncate upon a transaction log
> > backup. Is this correct?
>
> > I have some databases that are in full recovery mode that when a
> > backup of the transaction log is made the transaction log does not
> > truncate itself. There are no open transaction (DBCC OPENTRAN) on
> > the
> > database.- Hide quoted text -
>
> - Show quoted text -

Using 2 methods:

1. DBCC SQLPERF(LOGSPACE);
2. Via SQL Studio: Database -> Tasks -> Shrink -> Files : then
selected Log for the file type and seeing the Available free space.

Bookmark and Share