开发者

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]).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜