首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >在与请求的名称或序号对应的集合中找不到项

在与请求的名称或序号对应的集合中找不到项
EN

Stack Overflow用户
提问于 2014-07-08 05:38:48
回答 3查看 13K关注 0票数 1

以下代码在此存储过程上不起作用。它适用于查询和另一个存储过程。

它将不会找到此存储过程的值,并返回错误"Item be debug.print in the collection in the collection for the requested or ordinal“

代码语言:javascript
复制
Dim x As ADODB.Connection
Set x = New ADODB.Connection

x.ConnectionString = "Provider=a;Server=b;Database=c;Trusted_Connection=yes;"
x.Open

Dim y As ADODB.Recordset
Set y = New ADODB.Recordset
x.CommandTimeout = 0

Set y = x.Execute("exec SP_storedprocedure 0")
Debug.Print y(0), y(1), y(2), y(3)**--the problem is here**

y.Close
Set y = Nothing
x.Close
Set x = Nothing
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24620324

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档