473,568 Members | 2,986 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error when some stored procedures are called in a classic ASP Page

When some of the SQL Server stored procedures I have written are called via
my Classic ASP page I have written I get the following error in the cell that
is supposed to be retrieving a single result:

"ADODB.Recordse t error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name
or ordinal.

/Default.asp, line 130"

I have no idea why this could be occuring. Some of the other stored
procedures work just fine. Any one have any ideas?

Thanks!!

dp

Jul 19 '05 #1
4 2793
Racer-D wrote:
When some of the SQL Server stored procedures I have written are
called via my Classic ASP page I have written I get the following
error in the cell that is supposed to be retrieving a single result:

"ADODB.Recordse t error '800a0cc1'

Item cannot be found in the collection corresponding to the requested
name or ordinal.

/Default.asp, line 130"

I have no idea why this could be occuring. Some of the other stored
procedures work just fine. Any one have any ideas?

Thanks!!

dp


You probably are getting spurious resultsets containing "x records affected"
messages. You can suppress these messages by adding
SET NOCOUNT ON
to the beginning of your stored procedures.

If that does not solve it, you should show us some code.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #2
I changed the proc to return named columns in brackets to see if that would
help. Still nothing.

On a separate effort, I changed the SELECTS to PRINT statements.. Still no
change. I still get the following error:
ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name
or ordinal.

/Default.asp, line 130


"Racer-D" wrote:
SET NOCOUNT ON didn't change anything. Here is the ASP calling the procedure:
<td> <%strSQL1 = "exec proc_dba_jobhis tory"
Set rs = aursql01.execut e(strSQL1)
Response.Write rs(0)%>

Thanks,

dp
"Bob Barrows [MVP]" wrote:
Racer-D wrote:
When some of the SQL Server stored procedures I have written are
called via my Classic ASP page I have written I get the following
error in the cell that is supposed to be retrieving a single result:

"ADODB.Recordse t error '800a0cc1'

Item cannot be found in the collection corresponding to the requested
name or ordinal.

/Default.asp, line 130"

I have no idea why this could be occuring. Some of the other stored
procedures work just fine. Any one have any ideas?

Thanks!!

dp


You probably are getting spurious resultsets containing "x records affected"
messages. You can suppress these messages by adding
SET NOCOUNT ON
to the beginning of your stored procedures.

If that does not solve it, you should show us some code.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 19 '05 #3
There is nothing there that should cause that error, so it stands to reason
that the error is occurring elsewhere.

Why aren't you checking for an empty recordset?

<td> <%strSQL1 = "exec proc_dba_jobhis tory"
Set rs = aursql01.execut e(strSQL1)
if not rs.EOF the
Response.Write rs(0)
else
Response.Write "nothing returned"
end if
%>

Racer-D wrote:
I changed the proc to return named columns in brackets to see if that
would help. Still nothing.

On a separate effort, I changed the SELECTS to PRINT statements..
Still no change. I still get the following error:
ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested
name
or ordinal.

/Default.asp, line 130


"Racer-D" wrote:
SET NOCOUNT ON didn't change anything. Here is the ASP calling the
procedure:
<td> <%strSQL1 = "exec proc_dba_jobhis tory"
Set rs = aursql01.execut e(strSQL1)
Response.Write rs(0)%>

Thanks,

dp
"Bob Barrows [MVP]" wrote:
Racer-D wrote:
When some of the SQL Server stored procedures I have written are
called via my Classic ASP page I have written I get the following
error in the cell that is supposed to be retrieving a single
result:

"ADODB.Recordse t error '800a0cc1'

Item cannot be found in the collection corresponding to the
requested name or ordinal.

/Default.asp, line 130"

I have no idea why this could be occuring. Some of the other
stored procedures work just fine. Any one have any ideas?

Thanks!!

dp

You probably are getting spurious resultsets containing "x records
affected" messages. You can suppress these messages by adding
SET NOCOUNT ON
to the beginning of your stored procedures.

If that does not solve it, you should show us some code.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap
so I don't check it very often. If you must reply off-line, then
remove the "NO SPAM"


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #4
So try my suggestion and report back if it helps.

Racer-D wrote:
Because I am new to this and I am learning. I don't know what else
to show you.

"Bob Barrows [MVP]" wrote:
There is nothing there that should cause that error, so it stands to
reason that the error is occurring elsewhere.

Why aren't you checking for an empty recordset?

<td> <%strSQL1 = "exec proc_dba_jobhis tory"
Set rs = aursql01.execut e(strSQL1)
if not rs.EOF the
Response.Write rs(0)
else
Response.Write "nothing returned"
end if
%>

Racer-D wrote:
I changed the proc to return named columns in brackets to see if
that would help. Still nothing.

On a separate effort, I changed the SELECTS to PRINT statements..
Still no change. I still get the following error:
ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the
requested name
or ordinal.

/Default.asp, line 130


"Racer-D" wrote:

SET NOCOUNT ON didn't change anything. Here is the ASP calling the
procedure:
<td> <%strSQL1 = "exec proc_dba_jobhis tory"
Set rs = aursql01.execut e(strSQL1)
Response.Write rs(0)%>

Thanks,

dp
"Bob Barrows [MVP]" wrote:

> Racer-D wrote:
>> When some of the SQL Server stored procedures I have written are
>> called via my Classic ASP page I have written I get the following
>> error in the cell that is supposed to be retrieving a single
>> result:
>>
>> "ADODB.Recordse t error '800a0cc1'
>>
>> Item cannot be found in the collection corresponding to the
>> requested name or ordinal.
>>
>> /Default.asp, line 130"
>>
>> I have no idea why this could be occuring. Some of the other
>> stored procedures work just fine. Any one have any ideas?
>>
>> Thanks!!
>>
>> dp
>
> You probably are getting spurious resultsets containing "x records
> affected" messages. You can suppress these messages by adding
> SET NOCOUNT ON
> to the beginning of your stored procedures.
>
> If that does not solve it, you should show us some code.
>
> Bob Barrows
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap
> so I don't check it very often. If you must reply off-line, then
> remove the "NO SPAM"


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2025
by: dwilliams | last post by:
Our organization has implemented an ASP.net application with an n-tiered architecture, made up of a business/data layer that calls T-SQL Stored procedures. We are attempting to better manage the many stored procedures we have written over the life of the application. To do this, we would like to determine which sprocs are being called from...
9
3710
by: heruti | last post by:
Hi all... I've been stumped by this for days. Bit of ASP code: (IIS) Set LocalConn = CreateObject("ADODB.Connection") LocalConn.CursorLocation = adUseClient LocalConn.CommandTimeout = 0 LocalConn.Open sConnStringSO (SQL Server 2000, irrelevant what it is, see below). LocalConn.Errors.Clear
7
5664
by: Anthony Robinson | last post by:
Have been encountering an odd issue. Every now and again, certain packages of stored procedures just become invalid. I'm aware that dropping or altering an underlying table would render a package invalid, but we are doing no such thing... After banging my head on the wall for a bit I noticed that the two stored procedures that are...
6
4726
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
4
6695
by: Jack | last post by:
Hi, I am trying to run an example code from a book. However I am getting the following error message: Number: -2147217900 Description: Syntax error or access violation Source: Microsoft OLE DB Provider for SQL Server SQLState: 42000
4
3139
by: Kiyomi | last post by:
Hello, I am trying to replace my alert message box with a popup page. In my page behind,
4
4348
by: scparker | last post by:
Hello, We have a stored procedure that does a basic insert of values. I am then able to retrieve the ID number created for this new record. We are currently using ASP.NET 2.0 and use N-Tier Architecture. The Stored Procedures are used through TableAdaptors, which in turn are used by Class Files. I wish to be able to return this new ID...
5
8802
by: Rahul B | last post by:
Hi, I have very little knowledge about creating Procedures/functions in DB2. When i tried to create the test function like CREATE FUNCTION GET_TEST (P_TEST_ID INTEGER, P_SEL_OR_SORT INTEGER,
3
1942
by: Tod Birdsall | last post by:
Hi, My boss has asked me to create a tool that can give us a list of stored procedure names that are being called from each of our app's web pages. This is an ASP.NET application that is rather large and about 5 years old. I am not here to debate the logic of the request. The structure of most the application is pretty standardized: We...
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.