Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AlanPBates
Starting Member
34 Posts |
Posted - 2010-05-26 : 10:36:37
|
| Our application collects data in about 100 tables. For archiving purposes we insert the data into 5 tables on a trigger based event.What is the best practice to delete the data from the 100 tables without compromising the CPU load on the CPU ?The OS is Server 2003 R2.Thanks,Alan. |
|
|
Kristen
Test
22859 Posts |
|
|
Asken
Starting Member
38 Posts |
Posted - 2010-05-27 : 03:28:10
|
If you want to clean it all out from the 100 tables just truncate the tables. You will however need to disable all foreign keys on the tables you want to empty. Once truncation is done enable the foreign keys again.Definately the fastest and least intense way. Reporting & Analysis SpecialistHelping others helps me get better... |
 |
|
|
|
|
|