ADO Techniques -- The .maxrecords property
dbmaxrecs.asp
<%
Set rstemp=Server.CreateObject("adodb.Recordset")
rstemp.maxrecords=15
connectme="DSN=Student;uid=student;pwd=magic"
rstemp.open "select * from titles", _
connectme,adopenstatic
' table display
howmanyfields=rstemp.fields.count -1
%>
<%
For i=0 To howmanyfields %>
<%=rstemp(i).name %> |
<% Next %>
<%
Do While Not rstemp.eof %>
<% For i = 0 To howmanyfields%>
<% = rstemp.fields(i).value %> |
<% Next %>
<%
rstemp.movenext
Loop
rstemp.close
Set rstemp=Nothing
%>