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. CDynamicAccessor

CDynamicAccessor

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelpquestion
5 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.
  • B Offline
    B Offline
    Bret Faller
    wrote on last edited by
    #1

    Good day, Has anyone used CDynamicAccessor with OLEDB? If so, I need help inserting data into the recordset using SetData(...). I want to set the value for one column on the specific row. I am using CTable with CDynamicAccessor. I have all the properties needed (IRowsetUpdate/Change, etc.) but everytime I call SetData I get DB_E_ERRORSOCCURRED. Any examples, help is greatly appreciated. Thanks. Bret Faller Odyssey Computing, Inc.

    T N 2 Replies Last reply
    0
    • B Bret Faller

      Good day, Has anyone used CDynamicAccessor with OLEDB? If so, I need help inserting data into the recordset using SetData(...). I want to set the value for one column on the specific row. I am using CTable with CDynamicAccessor. I have all the properties needed (IRowsetUpdate/Change, etc.) but everytime I call SetData I get DB_E_ERRORSOCCURRED. Any examples, help is greatly appreciated. Thanks. Bret Faller Odyssey Computing, Inc.

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      You may have been hit by issue described in KB article Q238539. Tomasz Sowinski -- http://www.shooltz.com

      B 1 Reply Last reply
      0
      • B Bret Faller

        Good day, Has anyone used CDynamicAccessor with OLEDB? If so, I need help inserting data into the recordset using SetData(...). I want to set the value for one column on the specific row. I am using CTable with CDynamicAccessor. I have all the properties needed (IRowsetUpdate/Change, etc.) but everytime I call SetData I get DB_E_ERRORSOCCURRED. Any examples, help is greatly appreciated. Thanks. Bret Faller Odyssey Computing, Inc.

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        It might not be the same problem but I ran into this error yesterday. It turned out I had an identity column in the column map. It would return this error when calling setdata.

        1 Reply Last reply
        0
        • T Tomasz Sowinski

          You may have been hit by issue described in KB article Q238539. Tomasz Sowinski -- http://www.shooltz.com

          B Offline
          B Offline
          Bret Faller
          wrote on last edited by
          #4

          I tried deriving a class and adding that support but still no go. I am using an ODBC driver because for some reason the Jet drivers don't support the options I need. Bret Faller Odyssey Computing, Inc.

          T 1 Reply Last reply
          0
          • B Bret Faller

            I tried deriving a class and adding that support but still no go. I am using an ODBC driver because for some reason the Jet drivers don't support the options I need. Bret Faller Odyssey Computing, Inc.

            T Offline
            T Offline
            Tomasz Sowinski
            wrote on last edited by
            #5

            I am using an ODBC driver because for some reason the Jet drivers don't support the options I need. Maybe ODBC over Jet doesn't support these options either. Anyway, you need to reduce your problem to some simple case: can you SetData on simple table with 1 integer column? Are you sure you're calling SetStatus for each field in accessor? Tomasz Sowinski -- http://www.shooltz.com

            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