sql server 2005 - What is the best way to delete all of a large table in t-sql? -


We have participated in a slightly strange situation. In fact, one of our databases has two tables which are fed to the following and we do not need it or about the logging information. Partially because of this we are running out of disk space.

I am trying to clean the table, but it is taking forever (after running this race through the weekend, there are still 57,000,000+ records.) And this is just the first table Is!)

Just taking away the table using the table and eating the drive space (I believe because of the transaction log.) I just deleted the record for a while I am using loop. X at a time, while playing with X, to determine what is really the fastest, for example, x = 1000 takes 3 seconds, while x = 100,000 takes 26 seconds ... which makes math a little faster is.

But the question is whether there is a better way or not?

(Once this is done, a SQL agent is going to run the job once the table is cleaned once in a day ... but it has already been cleaned.)

  trunky table [tabline]  

All records will be removed from the table without cutting each extinction separately from the cutting.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -