Truncating 100GB table

  • Afternoon,

    I need to truncate a 100gb table and I was wondering if any body had any rough ideas how long this would take and what kind of impact this would have on the server in terms of processor usage etc? This is just a old table taking up space with nothing accessing it so I just like to get rid.

    Thanks for any advice.

    Andy

  • Truncate will be the fastest option since it will de-allocate all data pages from the table. How long will it take? It depends on the number of pages and your system performance. Do you have a test system you can use to get a timing?



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • As Keith mentioned, it will vary, depending on your system. The truncate should be fairly quick, but the logging of the deallocations might take some time and will increase your t-log space needed.

Viewing 3 posts - 1 through 2 (of 2 total)

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