paging on SQL Server database
It is very simple to do paging on access database (using absolute and pagesize) but I heard its hard to do paging on SQL Serve开发者_StackOverflow中文版r database. How do I do I add simple paging to the following codes.
<%
SQL = "SELECT I.IMAGESID, I.IMAGESNAME, I.IMAGESSMURL"
SQL = SQL & " FROM IMAGES I"
Set objImages = objConn.Execute(SQL)
%>
<div class="row">
<label for="Images">Images</label>
<% Do While Not objImages.EOF %>
<img src="<%=objImages("IMAGESSMURL")%>" alt="<%=objImages("IMAGESNAME")%>" border="0" />
<%
objImages.MoveNext
Loop
%>
<%
objImages.close
Set objImages = Nothing
%>
Please see: SQL Server 2005 Paging – The Holy Grail (need to register[free]).
精彩评论