Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete all but top 100 rows
Message
De
16/05/2014 09:44:39
Walter Meester
HoogkarspelPays-Bas
 
 
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:
01600029
Message ID:
01600107
Vues:
44
>>I do know what a Truncate command does. That's why I reacted with surprise.
>
>I think Nick was talking about the real table he wanted to clean up. If the table is big, then the usual advice is to select only rows we want to keep, truncate the table (zap in VFP) and put that saved rows back into original table. Of course, the process needs to be put in transaction.

That is the quickest, however if there is Referential Integrity involved its a different ballgame.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform