Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CRecordset and Oracle 8

CRecordset and Oracle 8

Scheduled Pinned Locked Moved C / C++ / MFC
databaseoraclehelp
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I have created a simple VC Dialog based application and added a CRecordSet through the wizard over a table in the Oracle database using an ODBC connection. The ODBC connection is fine cause the ODBC test for Oracle has verified it. The problem is when I call COracleRecSet recset; recset.Open(); The application hangs :confused: . Can anybody please tell what can be the problem.

    W A 2 Replies Last reply
    0
    • L Lost User

      I have created a simple VC Dialog based application and added a CRecordSet through the wizard over a table in the Oracle database using an ODBC connection. The ODBC connection is fine cause the ODBC test for Oracle has verified it. The problem is when I call COracleRecSet recset; recset.Open(); The application hangs :confused: . Can anybody please tell what can be the problem.

      W Offline
      W Offline
      wangyiming
      wrote on last edited by
      #2

      Maybe oracle only support open with: CRecordset::forwardOnly

      1 Reply Last reply
      0
      • L Lost User

        I have created a simple VC Dialog based application and added a CRecordSet through the wizard over a table in the Oracle database using an ODBC connection. The ODBC connection is fine cause the ODBC test for Oracle has verified it. The problem is when I call COracleRecSet recset; recset.Open(); The application hangs :confused: . Can anybody please tell what can be the problem.

        A Offline
        A Offline
        Alexandru Savescu
        wrote on last edited by
        #3

        Did you open a CDatabase object first to the database? Something like : CDatabase DB; DB.OpenEx(...) COracleRecSet recset (&DB); recset.Open(...) Best regards, Alexandru Savescu

        L 1 Reply Last reply
        0
        • A Alexandru Savescu

          Did you open a CDatabase object first to the database? Something like : CDatabase DB; DB.OpenEx(...) COracleRecSet recset (&DB); recset.Open(...) Best regards, Alexandru Savescu

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Is it necessary. I think for CRecordSet that was not necessary. But I tried that too. Sorry same problem. :confused: It hangs when calling recset.Open() :((

          A 1 Reply Last reply
          0
          • L Lost User

            Is it necessary. I think for CRecordSet that was not necessary. But I tried that too. Sorry same problem. :confused: It hangs when calling recset.Open() :((

            A Offline
            A Offline
            Alexandru Savescu
            wrote on last edited by
            #5

            Well I think it necessary. Try stepping into the MFC code and see where it hangs more specifically. There are a lot of reasons for which a Open will fail. Good luck! Best regards, Alexandru Savescu

            L 1 Reply Last reply
            0
            • A Alexandru Savescu

              Well I think it necessary. Try stepping into the MFC code and see where it hangs more specifically. There are a lot of reasons for which a Open will fail. Good luck! Best regards, Alexandru Savescu

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              First of all thanks that you are taking interest in this. I traced into the MFC recordset code. The database object gets allocated fine. The application hangs on the actual SC_ API call that connects to the oracle database. Someone suggested that it can be the problem of the drivers. Can you comment...This problem is really bugging me.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups