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. Database & SysAdmin
  3. Database
  4. error during update openquery

error during update openquery

Scheduled Pinned Locked Moved Database
databaseoraclehelpquestionannouncement
3 Posts 2 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.
  • M Offline
    M Offline
    mikcutu
    wrote on last edited by
    #1

    Hello, I have 2 SQL servers (MS SQL and ORACLE). I an running an update openquery (from MS SQL) in order to update a table from Oracle. My select from openquery is not based on a simple select from one table; it is using few inner joins among tables from both servers. When I am runnig the update I receive the following error: ROW-00009: Cannot update row in a read-only rowset ] As far as i read on the net, I saw that there is not possible because of too complex code. Does anyone have any idea if there exists any workaround for this? Thanks a lot.

    L 1 Reply Last reply
    0
    • M mikcutu

      Hello, I have 2 SQL servers (MS SQL and ORACLE). I an running an update openquery (from MS SQL) in order to update a table from Oracle. My select from openquery is not based on a simple select from one table; it is using few inner joins among tables from both servers. When I am runnig the update I receive the following error: ROW-00009: Cannot update row in a read-only rowset ] As far as i read on the net, I saw that there is not possible because of too complex code. Does anyone have any idea if there exists any workaround for this? Thanks a lot.

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

      mikcutu wrote:

      My select from openquery is not based on a simple select from one table; it is using few inner joins among tables from both servers.

      How about doing those inner joins, and put the result in a temporary table? That way you'd have a "simple" table to update. That way you'd also see whether the error is in the query itself, or during the update.

      Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

      M 1 Reply Last reply
      0
      • L Lost User

        mikcutu wrote:

        My select from openquery is not based on a simple select from one table; it is using few inner joins among tables from both servers.

        How about doing those inner joins, and put the result in a temporary table? That way you'd have a "simple" table to update. That way you'd also see whether the error is in the query itself, or during the update.

        Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

        M Offline
        M Offline
        mikcutu
        wrote on last edited by
        #3

        Hello Eddy, Thanks for reply me. In the end, my update should be in a final table and this means to have also a join between the final table and the temporary one but this makes me thinking to try using a view for entire join selection and use it into the openquery. I will try this and let you know. Cheers, Mikcutu.

        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