<<< 返回 access911.net 编程静态资料库索引页 一个建立服务器端Sql存储过程的例子
作者: 摘自: 录入:cg1 时间:2002-12-1 浏览人次:486 专题地址:http://www.access911.net/index.asp?u1=a&u2=79FAB61E 如果需要更详细的评论或说明,请点击该地址。
简述:
<% ...... ‘建立名为Con的数据库连接(省略) Set RS = Server.CreateObject( ADODB.RecordSet ) ‘建立ADO RecordSet对象。 Set CMD = Server.CreateObject( ADODB.Command ) ‘建立ADO Command对象。 SQLstr = {CALL forum_retrieve.getforums({resultset 10,forumname,thecount})} ‘建立存储过程调用字符串。其中forum_retrieve. ‘getforums说明是调用forum_retrieve包中的getforums ‘存储过程,forumname、thecount是存储过程的输出变量, ‘resultset 10说明输出结果集的数量,这里的数字一定 ‘要大于实际的输出数量,如果大于设定值,则会出现 ‘Oracle error ORA-06512错误。 CMD.ActiveConnection = Con ‘建立CMD对象与Con的联系。 CMD.CommandType = adCmdText ‘调用存储过程时要..................... |
资料库随时有更新,欲查看最新详情请单击专题地址:http://www.access911.net/index.asp?u1=a&u2=79FAB61E
上一篇:安全配置Win2000服务器
下一篇:“上一篇下一篇”的代码
2010年7月2日生成静态资料