May 4, 2009 at 1:52 pm
May 4, 2009 at 2:33 pm
well certainly not delete then drop.
It looks to me that truncate from a large table and drop a large table are in effect handled in the same way, see
http://msdn.microsoft.com/en-us/library/ms177495(SQL.90).aspx
so going directly to drop the table seems best option.
be aware all objects referencing the table would have to be deleted first, including foreign keys.
---------------------------------------------------------------------
May 4, 2009 at 5:50 pm
I agree with George. Just to be sure, though, I ran a test where I build my normal million row test table and then used profiler to measure what's going on for Truncate/Drop and just DROP. Here're the results...
That's on a database with the SIMPLE recovery mode... checking on what happens with full recovery in a minute...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 4, 2009 at 6:01 pm
Here's the same tests but in the FULL recovery mode. Just DROP wins again... notice the couple of writes to the log this time...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 5, 2009 at 3:34 am
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply