Help truncate

  • Hi,

    I want to that on every checkpoint the log should be truncated.

    from

    Killer

  • Change the database option to truncate log file on checkpoint

  • Hi Sufian,

    Try out this

    USE master

    go

    EXEC sp_dboption 'model','trunc. log on chkpt.',true

    go

    USE model

    go

    CHECKPOINT

    go

     

    hope this help u

     

    from

    Killer

  • This sp will be 'removed' sometime in the future ...

    Use "ALTER DATABASE your_database_name SET RECOVERY SIMPLE" instead.

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • Hi Rudy,

     

    What does this means

    This sp will be 'removed' sometime in the future ...'

    from

    Killer

     

     

  • Rudy means.,

    Mircosoft may not support this SP. Better to use ALTER Database.,

  • Yes ,

    I know this will not be supported by microsoft.But till it is there we should use it .

    from

    Killer

  • Correct., yes it is supported even with SQL 2005. But MS recommends to use ALTER DAtabase Syntax.

  • Raj, I think the idea is that it's best to use the "supported" methods because if you have any "unsupported" coding in stored procedures or jobs, when that code is no longer supported, your applications will break, and you'll spend time & energy tracking down the problem. So, it's best to use the code that you know doesn't run the risk of breaking in the future.

  • Thanx

Viewing 10 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic. Login to reply