Link to home
Start Free TrialLog in
Avatar of Coates
Coates

asked on

Setting RowCount

Is there a way to limit the amount of records that are returned by a recordset? Can i set the rowcount in the query and then the RS will only return that amount of records.
Avatar of waty
waty
Flag of Belgium image

Here is a sample :

SELECT TOP 25
FirstName, LastName
FROM Students
WHERE GraduationYear = 1997
ORDER BY GradePointAverage DESC;
Avatar of Coates
Coates

ASKER

What does the DESC mean?
It means that all the record will be sorted descently.
Avatar of Coates

ASKER

Ive tried this using telnet to my sybase server, and i get a syntax error near '25'. I dont think my version of sybase supports that method.
Avatar of Coates

ASKER

Ive tried this using telnet to my sybase server, and i get a syntax error near '25'. I dont think my version of sybase supports that method.
ASKER CERTIFIED SOLUTION
Avatar of BlackAndWhite
BlackAndWhite
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial