Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete all but top 100 rows
Message
From
16/05/2014 04:43:47
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01600029
Message ID:
01600087
Views:
52
>>The simplest way will be (assuming you can truncate the table)
>>
>>select top (100) * into #SaveResults from TableToClean order by SomeColumn
>>truncate table TableToClean
>>insert into TableToClean
>>select * from #SaveResults
>>drop table #SaveResults
>
>Truncate?

That's the politically rectified expression for zap.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform