Current location: Hot Scripts Forums » Programming Languages » ASP » ADODB.Recordset error '800a0cc1'


ADODB.Recordset error '800a0cc1'

Reply
  #1 (permalink)  
Old 12-18-07, 01:12 PM
algorithm algorithm is offline
Newbie Coder
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
ADODB.Recordset error '800a0cc1'

Hi there . i am getting this error message

ADODB.Recordset error '800a0cc1'

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

/desc.asp, line 177

Line 177
if(not isNull(rs("photoid").Value)) then

Set rs1 = Server.CreateObject("ADODB.Recordset")

rs1.Open "select [FileData],[ContentType], from upload_table where ImgId = & _
rs("photoid"), cn, 2, 4


If Not rs1.EOF Then
Response.ContentType = rs1("ContentType")
Response.BinaryWrite rs1("FileData")
End If

Please tell me how can i remoove this error message

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 12-18-07, 03:26 PM
omniman's Avatar
omniman omniman is offline
Coding Addict
 
Join Date: Aug 2006
Location: Baltimore, MD
Posts: 342
Thanks: 0
Thanked 1 Time in 1 Post
It's a problem with the column name. Unless you specify otherwise in your query, it will return the column name as the field. Seems to be a problem with 'photoid'.
__________________
"Political Correctness is a doctrine, fostered by a delusionary, illogical, liberal minority and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end."
Reply With Quote
  #3 (permalink)  
Old 12-20-07, 11:35 AM
algorithm algorithm is offline
Newbie Coder
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
thanks man .
Reply With Quote
  #4 (permalink)  
Old 12-20-07, 11:39 AM
algorithm algorithm is offline
Newbie Coder
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Hi omniman
Actually i am just copy pasing the code with little modification.. what can be the possible solution
Reply With Quote
  #5 (permalink)  
Old 12-20-07, 11:41 AM
omniman's Avatar
omniman omniman is offline
Coding Addict
 
Join Date: Aug 2006
Location: Baltimore, MD
Posts: 342
Thanks: 0
Thanked 1 Time in 1 Post
As I said before, it looks to be a problem with the column name...

What is the EXACT name of the column in the table?
__________________
"Political Correctness is a doctrine, fostered by a delusionary, illogical, liberal minority and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end."
Reply With Quote
  #6 (permalink)  
Old 12-20-07, 12:37 PM
algorithm algorithm is offline
Newbie Coder
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
hi omniman, you are right.

The colomn names in database table upload_table are contenttype,filedata,filename, filesize,imgid,idno and title.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB.Recordset error '800a0cc1" pserowik@sbcglobal.net Database 1 06-15-06 09:33 PM
HELP! error: ADODB.Recordset error '800a0cc1' toth ASP 8 02-02-06 02:50 PM
ADODB.Recordset error 800a0bb9 andrew123 ASP 3 01-12-06 03:39 PM
ADODB.Recordset error '800a0e78' kmf165 ASP 4 08-10-05 10:19 PM
ADODB.Recordset error '800a0cc1' (definately not a typo) ethical_anarhist ASP 3 05-15-04 01:51 AM


All times are GMT -5. The time now is 04:00 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.