Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL Log File - how to remove / reduce

SQL Log File - how to remove / reduce

Scheduled Pinned Locked Moved Database
databasetutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BSRK
    wrote on last edited by
    #1

    Hi, I found that the Log file of my database has grown too fat. as i want to save some of the resources, i am thinking of deleting it. but i think such a direct deletion will hamper my database. can you please tell me how to DELETE / REDUCE the size of that log file. also, throw some light on how to read database log files. Thanking You. BSRK

    S E 2 Replies Last reply
    0
    • B BSRK

      Hi, I found that the Log file of my database has grown too fat. as i want to save some of the resources, i am thinking of deleting it. but i think such a direct deletion will hamper my database. can you please tell me how to DELETE / REDUCE the size of that log file. also, throw some light on how to read database log files. Thanking You. BSRK

      S Offline
      S Offline
      Stephen McGuire
      wrote on last edited by
      #2

      What DB are you using, SQL Server? ADDED: Apologies, I should have read the title of the question!! You should look at your Recovery model. Maybe you could get away with a lower level of recovery. You cannot delete the Transaction Log. If you backup your log, it is automatically truncated. Then, you can shrink it. You can run backup with a TRUNCATE_ONLY option. Then shrink it. Steve -- modified at 14:37 Thursday 17th August, 2006

      1 Reply Last reply
      0
      • B BSRK

        Hi, I found that the Log file of my database has grown too fat. as i want to save some of the resources, i am thinking of deleting it. but i think such a direct deletion will hamper my database. can you please tell me how to DELETE / REDUCE the size of that log file. also, throw some light on how to read database log files. Thanking You. BSRK

        E Offline
        E Offline
        Eric Dahlvang
        wrote on last edited by
        #3

        Shrinking the Transaction Log[^] Truncating the Transaction Log [^]

        --EricDV Sig--------- Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peters

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups