<span id="blogname"></span>


All that's beautiful drifts away like the waters ——W. B. Yeats
Modisied by Leslie-Cheung.com
 
2007/6/20 17:36:00
如何获取纪录数
 

当用到储存过程执行时,总纪录数总为-1,如何才能得到总纪录数

获取记录数的话,要用open方式打开记录集,不能这样写
set rs = conn.execute(sql)

要这样写
sql = "..."
set rs = server.createobject("adodb.recordset")
rs.open sql,conn,1,1
然后就可以用rs.recordcount获取总数了

 
By 小鱼儿  阅读全文 | 回复(0) | 引用通告 | 编辑

发表评论:
 
Calendar

<<  < 2009 - >  >>
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Login


Bulletin
Recent Entries
Comments
Messages
Information
Links


Designed by Subdreamer
 
Powered by Oblog.