Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete all but top 100 rows
Message
From
16/05/2014 09:44:39
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01600029
Message ID:
01600107
Views:
43
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform