Dec 7, 2005 #1 F430 Programmer Joined Dec 6, 2005 Messages 8 Location 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
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
Dec 7, 2005 1 #2 DotNetGnat Programmer Joined Mar 10, 2005 Messages 5,548 Location IN it is very easy to do at the sql level...just use... SELECT TOP 4 * from mytable... -DNG Upvote 0 Downvote
Dec 7, 2005 Thread starter #3 F430 Programmer Joined Dec 6, 2005 Messages 8 Location GB Is that in the ASP SQL statement or in the DB query Upvote 0 Downvote
Dec 7, 2005 #4 DotNetGnat Programmer Joined Mar 10, 2005 Messages 5,548 Location IN ASP SQL Statement... -DNG Upvote 0 Downvote
Dec 7, 2005 #5 damber Programmer Joined Feb 18, 2001 Messages 1,002 Location GB 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! Upvote 0 Downvote
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!
Dec 7, 2005 #6 onpnt Programmer Joined Dec 11, 2001 Messages 7,778 Location US ASP SQL Statement Click to expand... that's a interesting new technology I haven't heard of yet ;-) Upvote 0 Downvote
Dec 8, 2005 #7 DotNetGnat Programmer Joined Mar 10, 2005 Messages 5,548 Location IN 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 Upvote 0 Downvote
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