Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i only display 4 rows from a returned recordset? 1

Status
Not open for further replies.

F430

Programmer
Dec 6, 2005
8
GB
Hello,

How can i only display 4 rows from a returned recordset?

Im using ASP and MS SQL Server.

Would it be easier to create a query in the DB or just do it in ASP, i would rather have it in ASP tho!

Thanks
 
it is very easy to do at the sql level...just use...

SELECT TOP 4 * from mytable...

-DNG
 
Is that in the ASP SQL statement or in the DB query
 

What's the matter with your previous thread on exactly the same question ?????

thread333-1161328



A smile is worth a thousand kind words. So smile, it's easy! :)
 
i thought the original poster was referring to the SQL query on the ASP page...so didnt wanted to confuse him and swayed with his jargon ;)

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top