Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select last 100 records from table
Message
From
08/09/2005 14:18:47
 
 
To
08/09/2005 13:10:28
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 1.1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01047740
Message ID:
01047811
Views:
13
No prob. Enjoy.
Bill

>That did it. Thanks!
>
>Jerry
>
>
>>One way is you can use the TOP N clause and order the results so the last 100 rows will be at the top:
>>
SELECT TOP 100 * FROM MyTable ORDER BY MyAlphaField DESC
>>
>>Bill
>>
>>>Is there a way to query the last 100 records in a SQL Server table?
>>>
>>>Thanks,
>>>
>>>Jerry
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform