I want to select the last 5 records from a table in SQL Server without arranging the table in ascending or descending order.
You can retrieve them from memory. So first you get the rows in a DataSet, and then get the last 5 out of the DataSet.