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. database problem

database problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpdatabasequestionannouncement
1 Posts 1 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.
  • U Offline
    U Offline
    udayGovekar
    wrote on last edited by
    #1

    Hi All, I am opening database as CDaoDatabase dbSql; dbSql.Open(NULL,FALSE,FALSE,"ODBC;DSN=ITITest;UID=sa;pwd="); CDaoRecordset rsSql; rsSql.m_pDatabase = dbSql; rsSql.Open(dbOpenSnapshot,"SELECT * FROM tbltest"); BOOL TRY1 = rsSql.CanUpdate(); rsSql.SetFieldValue("test1","123"); when this is executed TRY1 is 0, that means I cant update I have to change the data in one field of tbltest at the run time for which I am using SetFieldValue of CDaoRecordset. I am getting following error, "operation is not supported for this type of object" Is this approach is correct?? Can anyone explain me asap Thanks in advance Uday

    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