Database Option

  • Hello -

    If sometime prior I use sp_dboption to set 'trunc. log on chkpt' on a database. Is their a "point and click" way to check that this option is set OR do I have to run a query in Management Studio?

    Thanks very much.

  • Not AFAIK. Why would you want to do this anyway? This option can do bad things to your DB environment.

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]

  • I think you can't, did you check, right click on the database and select "properties" I advise you against it, you will result in database that can't recover to the latest transaction in case of database crush.

    Oded

    www.dbsnaps.com

    www.orbiumsoftware.com

  • Truncate log on checkpoint is a deprecated option (has been since SQL 2000 I think) and will be removed in a future version. The replacement is to use the recovery models, simple if you want the log to auto-truncate and you don't need point-in-time recovery or full or bulklogged if you do need point-in-time recovery and intend to manage the log yourself.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • GilaMonster (6/14/2009)


    Truncate log on checkpoint is a deprecated option (has been since SQL 2000 I think) and will be removed in a future version. The replacement is to use the recovery models, simple if you want the log to auto-truncate and you don't need point-in-time recovery or full or bulklogged if you do need point-in-time recovery and intend to manage the log yourself.

    Right. My bad, for some reason I read "Truncate" but I think "Shrink" even though I know darn well that they are not at all the same. 🙁

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]

  • can u run sp_helpdb 'db name' and provide us recovery model of ur db

Viewing 6 posts - 1 through 5 (of 5 total)

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