Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting millions of records
Message
De
05/09/2013 18:44:58
 
 
À
05/09/2013 18:27:27
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01582347
Message ID:
01582363
Vues:
51
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform