The SQL Server DOES do the sorting. The client doesn't do anything
except receive the list and populate the grid.
There are two potential issues:
1) You need to create/update an index to better support the search.
2) You are doing a full search rather than a quick search.
How many call records do you have in your calls table? How much RAM do
you have on your SQL Server? Here is the query. Try running it in
isqlw, and see how long it takes to complete:
Select Start=DateAdd(Second, (0-AcctSessionTime-AcctDelayTime),
CallDate), (AcctSessionTime/60)+1,
(AcctInputOctets/1000)+1, (AcctOutputOctets/1000)+1, Location,
UserName,
AcctTerminateCause, Server, NASPort, ConnectInfo