Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 10:59 AM
fruddy
Guest
 
Posts: n/a
Default Unwarranted Error?

Hi everyone,
I'm getting the following error:

ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested
name or ordinal.

Now we all know that it means I'm trying to refer to a column that does
not exist in the DB (SQL Server), yet it definitely, absolutely
exists....

The recordset is created by a stored procedure... this column is even
used on other pages in the same application, yet doesn't work on this
particular page?

This site doesn't get this error in the development environment at all,
just when I've pushed it to live.

Even when I view the results of executing this stored procedure in query
analyser, it returns the column and a value!!!

Could there be another cause of this???

Thanks for any suggestions....


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2  
Old July 19th, 2005, 11:00 AM
Aaron Bertrand [MVP]
Guest
 
Posts: n/a
Default Re: Unwarranted Error?

Put SET NOCOUNT ON at the beginning of the stored procedure.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/




"fruddy" <frudd80@hotmail.com> wrote in message
news:OBj8dOm1DHA.2604@TK2MSFTNGP09.phx.gbl...[color=blue]
> Hi everyone,
> I'm getting the following error:
>
> ADODB.Recordset (0x800A0CC1)
> Item cannot be found in the collection corresponding to the requested
> name or ordinal.
>
> Now we all know that it means I'm trying to refer to a column that does
> not exist in the DB (SQL Server), yet it definitely, absolutely
> exists....
>
> The recordset is created by a stored procedure... this column is even
> used on other pages in the same application, yet doesn't work on this
> particular page?
>
> This site doesn't get this error in the development environment at all,
> just when I've pushed it to live.
>
> Even when I view the results of executing this stored procedure in query
> analyser, it returns the column and a value!!!
>
> Could there be another cause of this???
>
> Thanks for any suggestions....
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles