送分的问题,快来抢啊!(rst.recordcount)

rwj81 2003-09-10 04:23:57
我的ASP代码如下:
set rst_view = Server.CreateObject("ADODB.Recordset")
rst_view.ActiveConnection = MM_cnn_incoming_STRING
sqlstr=session("sqlstr")
rst_view.Source = sqlstr
rst_view.CursorType = 0
rst_view.CursorLocation = 2
rst_view.LockType = 3
rst_view.pagesize=8
rst_view.Open()

totalmessage=rst_view.recordcount
totalpage=rst_view.pagecoun

记录集绝对打开了,并且有记录,但rst_view.recordcount和rst_view.pagecoun
的值却始终是-1,何解???
...全文
34 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
huhan3 2003-09-10
  • 打赏
  • 举报
回复
rst_view.CursorType = 3
gshope 2003-09-10
  • 打赏
  • 举报
回复
rst_view.CursorType = 3
rst_view.LockType = 1

peytonzwt 2003-09-10
  • 打赏
  • 举报
回复
我也遇到这个问题了,是数据库的问题啊,数据库不支持。

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧