Transactrion Log Truncation.

Last post 05-29-2008, 6:44 AM by baddy. 2 replies.
Sort Posts: Previous Next
  •  05-27-2008, 5:58 AM Post number 55870

    • baddy is not online. Last active: 08-18-2008, 2:53 AM baddy
    • Top 25 Contributor
    • Joined on 04-07-2008
    • India
    • Blue Gene

    Transactrion Log Truncation.

    Hi All -
    using SQL 2000, i executed some DML (create Tables)/DDL (insert records) statements on Database & noticed the very strange behavior of Transaction log.
    Lastly it observed the number of rows in Transaction log is 2958
    And now the total number of rows in Transaction log is 458

    It seems that transaction log is truncated.

    I did following steps >>
    1) Created DB from the Enterprise Manager & here is the default options details:

    Recovery
          Model - Full
    Setting
          Auto update statistics - True
          Auto Create Statics - True
          Torn page detection - True
         Other options are false like Auto shrink...auto close....
    2) Created some Tables in DB
    3) Inserted records into these tables.
    4) Checked number of records in a Transaction log by using DBCC Log ('DB_Name', 4) - previously it was 2958
    5) Inserted more records into tables.
    6) Checked number of records in a Transaction log & it is 458

    I’m confused with this strange behavior of SQL Server, can anyone please suggest me how can I stop this truncation or capture this event.

    N.B: I observed the same behavior in SQL 2005 too.


    Thanks,
    Baddy
  •  05-27-2008, 3:50 PM Post number 55990 in reply to post number 55870

    Re: Transactrion Log Truncation.

    Are you sure that a transaction log backup didn't occur during your process?
  •  05-29-2008, 6:44 AM Post number 56632 in reply to post number 55990

    • baddy is not online. Last active: 08-18-2008, 2:53 AM baddy
    • Top 25 Contributor
    • Joined on 04-07-2008
    • India
    • Blue Gene

    Re: Transactrion Log Truncation.

    yes, i'm not taking any baackup.
    just using DB as backend for my application.
    even i'm unable to read previous days Transaction log.


    Thanks,
    Baddy
View as RSS news feed in XML