Results 1 to 3 of 3

Thread: retrieve a record count from Oracle DB

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Singapore
    Posts
    59

    Lightbulb

    When recordcount is -1 you must be using ADO.
    you should use count(*) query to count the records.
    if count=0 then
    do something
    else if
    do some thing
    end if

    thanks
    karun
    With regards,
    Karun

  2. #2
    New Member
    Join Date
    May 2000
    Location
    Scottdale, PA
    Posts
    1
    thanks to those who replied.
    much appreciated.

    i am using ado.

    come to think of it, i think i was using a forward only cursor. that would explain alot.

    shouldnt you be able to return the number of records affect using some form of the following statement as well

    adoconnection.execute strSQL,numofrecsaffected

    if so, the cursor shouldn't be forward only???

    i am fairly new with ado and extremely new to oracle, just in case anyone was wondering.

    Thanks!!!
    akaLinus
    VB60, C++, Magik, Avenue, AML

    This Is How I Go, When I Go Like This!

  3. #3
    Guest
    i never tried using .Execute with
    recordsaffected, but reading help,
    i think this should work too. if
    you try, let me know how it was.

    good luck

Posting Permissions

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



Click Here to Expand Forum to Full Width