Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Truncating 100GB table Expand / Collapse
Author
Message
Posted Wednesday, October 30, 2013 10:42 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, February 19, 2014 12:25 AM
Points: 3, Visits: 27
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
Post #1509869
Posted Wednesday, October 30, 2013 10:54 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Today @ 8:30 AM
Points: 564, Visits: 853
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
Post #1509875
Posted Wednesday, October 30, 2013 11:04 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Yesterday @ 11:24 AM
Points: 33,088, Visits: 15,197
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.






Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1509881
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse