+ Reply to Thread
Results 1 to 4 of 4

Thread: SQL Error

  1. #1
    K.Forsythe Guest

    Default SQL Error

    A collection refers to a library, my guess is that it can't find your file "TESTFILE" Try adding the library name, use either "Yourlib.TESTFILE" or "Yourlib/TESTFILE" Depending on the configuration, either could work - so try one then the other. If that doesn't fix it, I'll look at it again. You can email me at kevin.forsythe@dmcconsulting.com Good luck and take care, Kevin

  2. #2
    Guest.Visitor Guest

    Default SQL Error

    Try using for FIELDS colllection of the recordset object
    Code

  3. #3
    ccrow@cronus.cc Guest

    Default SQL Error

    I am using VBscript in an ASP with Client Access ODBC to run an SQL on an V5r1 iSeries database file. The Code looks like this: SQLString = "Select FLD1, FLD2, FLD3 from TESTFILE" Set objRS = objConn.Execute(SQLString) Do while not objRs.EOF Response.Write objrs(FLD1) Response.Write objrs(FLD2) Response.Write objrs(FLD3) objRs.movenext Loop The Error I get in my log file is on the first Response.Write statement and is: "800a0cc1|Item_cannot_be_found_in_the_collection_co rresponding_to_the_requested_name_or_ordinal." In another program, I created a new view that worked fine with the following code: CREATE VIEW test1 AS SELECT * FROM TESTFILE Am I reading the error correctly, in that it says FLD1 cannot be found?

  4. #4
    ccrow@cronus.cc Guest

    Default SQL Error

    That worked, Thanks for everyones help!

+ Reply to Thread

Similar Threads

  1. Replies: 2
    Last Post: 06-06-2003, 12:57 PM
  2. Replies: 1
    Last Post: 12-24-2002, 11:12 AM
  3. Replies: 1
    Last Post: 12-12-2001, 09:35 AM
  4. Error EVFCSVRD.exe - Application Error
    By Guest.Visitor in forum Programming
    Replies: 7
    Last Post: 09-07-2001, 10:07 AM
  5. Replies: 3
    Last Post: 12-13-2000, 01:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts