Results 1 to 4 of 4

Thread: ADODB 0x80020009 error problem

  1. #1
    Join Date
    Jun 2009
    Posts
    96

    ADODB 0x80020009 error problem

    I am using MYSQL server have Select statement on one of the asp page. I am now getting the empty recordset error:
    ADODB.Field (0x80020009)
    Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
    I have double checked everything but nothing found. Can anyone help me why I'm getting 0x80020009 error message?

  2. #2
    Join Date
    Nov 2005
    Posts
    1,323

    Re: ADODB 0x80020009 error problem

    The error message indicates your select query does not return any records. This indicate either your search criteria is inappropriate for the records or you have reached to the end of the file. If you want to avoid such kind of error messages then you can add a small statement in your code. It is as below:

    Code:
    IF not (RS.EOF and RS.BOF) then
    'user specified action goes here
    END IF
    This means if you reach the end of file, you force the database not to display any error message but instead perform the action that I specified.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: ADODB 0x80020009 error problem

    The above error occurs when accessing a recordset in an Active Server Pages (ASP) file that contains "Text" or "Blob" type data from a SQL table. When dealing with BLOB fields from SQL Server, you need to put them to the right of non-BLOB columns in the resultset. To be safe, you should also read the columns in left-to-right order, so if you have two BLOB columns as the last two columns in your resultset, read the first one and then the second.

  4. #4
    Join Date
    Nov 2008
    Posts
    1,192

    Re: ADODB 0x80020009 error problem

    This could be the problem with your SELECT statement. You might not have specified the correct entries because of which you are not getting any result. Also you have not coded for exceptional cases. It is always advised to have some code for exception handling. You can do so by adding statements something like below:

    Code:
    If not objRS1.EOF then 
    Do Until objRS1.EOF 
    ..........
    Loop
    End If

Similar Threads

  1. Replies: 8
    Last Post: 04-11-2011, 08:53 PM
  2. Types of Cursors in ADODB
    By Jagdish Gada in forum Software Development
    Replies: 4
    Last Post: 28-11-2009, 01:36 PM
  3. Error code 0x80020009, wmp.dll will not register
    By Fedlix in forum MediaCenter
    Replies: 2
    Last Post: 03-07-2009, 05:52 AM
  4. Opening .DBF file using ADODB
    By Pratap Gad in forum Software Development
    Replies: 3
    Last Post: 21-04-2009, 02:52 PM
  5. Replies: 0
    Last Post: 22-04-2008, 07:54 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,449,952.75194 seconds with 17 queries