Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting millions of records
Message
From
05/09/2013 18:44:58
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01582347
Message ID:
01582363
Views:
52
>If the # of rows you want to delete is much larger than the # of rows being retained, you might want to do this....
>
>- Copy the rows you want to retain to another table
>- TRUNCATE the original table
>- Load the table you created in step 1 back to the original table (or rename it, or whatever)
>
>Obviously, if you have constraints involved, you'll need to disable or drop them and then re-enable-re-add them

No constraints involved. When you mention truncate, what option are you referring to exactly?

As far as the recommended turning off the transaction, this is not possible. We can go with a simple recovery mode however but that doesn't help much.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform