3wt.ezer.com 9/7/2010 12:22:21 PM 3wt.ezer.com:ASP:recordset getsqlserver-staticrecordset:學習 asp sql html code 繁體中文 w3 Learning

domain .tw idv.tw .com.tw
你正在閱覽 :: 繁體中文:: 學習 ASP SQL VB HTML code

學習 .ASP SQL HTML XML CSS JAVA Perl code study
English Chinese_Traditional Chinese_Simplified

你正在閱覽 :: 繁體中文 Chinese_Traditional

學習.主題:
首頁
ASP
. Active-Server-Flash
. Array
. Cache
. Connection
. Count
. Counter
. Distinct
. Email
. File
. Folder
. Function
. GetSQLserver
. Header
. mySQL
. Record
. Recordset
»GetSQLserver-Recordset
»GetSQLserver-StaticRecordset
»rs.open
. Request
. Response
. Server
. server-createobject
. ServerVariables
. Session
. Special-Symbols
. String
. Sub
. Time
CSS
Ecommerce
HTML
InternetProtocol
JAVA
Microsoft
php
Robots
SearchEngine
SQL
SQLserver
VBscript
XML

SiteMap

3w....學習.教學 > ASP > recordset » getsqlserver-staticrecordset

3w learning

recordset >
getsqlserver-staticrecordset

Title:

Get SQLserver Static Recordset - read data from SQLserver DB


由SQLserver 物件讀取資料,
計錄出筆數並將每筆資料編號
Description:

GetSQLserverStaticRecordset [ includes static counting ] GetSQLserverRecordset [ no static counting ]


含有static時將使用主機較多資源
Example Code:

<% sub= " order by c1" SQL="select * from Table where c1='"&b1&"' " & sub Set rs= GetSQLserverStaticRecordset( conn, SQL) rs.AbsolutePosition=5 %> <% =rs("c2") %> ---------------------------------------------------- <% SQL="select * from aTable " Set rs = GetSQLserverStaticRecordset( conn, SQL) %> <% rs.PageSize = 10 rs.PageCount ShowOnePage rs, Page %> <% Sub ShowOnePage( rs, Page ) End Sub %> ---------- tips memo ---------- For Access : GetMDBStaticRecordset .... For Excel: GetExcelStaticRecordset For FoxPro :GetExcelStaticRecordset For Text : GetTextStaticRecordset For dBase : GetdBaseStaticRecordset For SQLserver : GetSQLserverStaticRecordset


儘量在有需要使用每筆資料的編號時
才使用static
Example Result:


display number 10's c2 data ------------------------------------------ list 10 raw a page create a number (rs.PageCount) for each raw


..
...
...

[ 9/7/2010 ]

www learning school add more scripts and tips memo
You are at >>3WT.EZER.COM >> 3WT.EZER.COM/ASP/RECORDSET/GETSQLSERVER-STATICRECORDSET.ASP>>ASP
Helpful link:: SEO web tools :: Live PR | SERP checker Google SERP pageranking checker
back to top Ezer code adding :: Questions ;email