开发者

paging on SQL Server database

开发者 https://www.devze.com 2022-12-21 14:33 出处:网络
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 t

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

精彩评论

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