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. The Lounge
  3. I have problem with OracleCommandBuilder !!!! Help me

I have problem with OracleCommandBuilder !!!! Help me

Scheduled Pinned Locked Moved The Lounge
helpdatabaseannouncement
7 Posts 7 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.
  • S Offline
    S Offline
    SEAGames22
    wrote on last edited by
    #1

    This is my code: this.oracleConnection1.ConnectionString = "user id=HMS;data source=HMS2005;password=HMS"; da = new System.Data.OracleClient.OracleDataAdapter(); cmd = new System.Data.OracleClient.OracleCommand("select A1,A2 from TEST",oracleConnection1); da.SelectCommand = cmd; cb = new System.Data.OracleClient.OracleCommandBuilder(da); daset =new DataSet(); da.Fill(daset); daset.Tables[0].Rows[0][0]= "123"; da.Update(daset); So When My program was run . it throw one error and error message is "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information." Help me!!!!!!!!!!:doh:

    D C J 3 Replies Last reply
    0
    • S SEAGames22

      This is my code: this.oracleConnection1.ConnectionString = "user id=HMS;data source=HMS2005;password=HMS"; da = new System.Data.OracleClient.OracleDataAdapter(); cmd = new System.Data.OracleClient.OracleCommand("select A1,A2 from TEST",oracleConnection1); da.SelectCommand = cmd; cb = new System.Data.OracleClient.OracleCommandBuilder(da); daset =new DataSet(); da.Fill(daset); daset.Tables[0].Rows[0][0]= "123"; da.Update(daset); So When My program was run . it throw one error and error message is "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information." Help me!!!!!!!!!!:doh:

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      WHAT, I ask you WHAT makes you think this is not a programming question?? :confused: try programming forums[^]... David Never forget: "Stay kul and happy" (I.A.)
      David's thoughts / dnhsoftware.org / MyHTMLTidy

      1 Reply Last reply
      0
      • S SEAGames22

        This is my code: this.oracleConnection1.ConnectionString = "user id=HMS;data source=HMS2005;password=HMS"; da = new System.Data.OracleClient.OracleDataAdapter(); cmd = new System.Data.OracleClient.OracleCommand("select A1,A2 from TEST",oracleConnection1); da.SelectCommand = cmd; cb = new System.Data.OracleClient.OracleCommandBuilder(da); daset =new DataSet(); da.Fill(daset); daset.Tables[0].Rows[0][0]= "123"; da.Update(daset); So When My program was run . it throw one error and error message is "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information." Help me!!!!!!!!!!:doh:

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        Firstly. When you posted this message there will have been a big red notice that said: Please do NOT post programming questions or ads to this forum. For programming help please try the Forums. Secondly. The error message given, "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information." actually gives you the answer. [SARCASTIC]So it would seem that forum ettiquete notes are not all you have trouble reading.[/SARCASTIC] (Hmmmm.... I'm obviously having a worse morning that I thought.)


        My: Blog | Photos | Next SQL Presentation WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

        P 1 Reply Last reply
        0
        • C Colin Angus Mackay

          Firstly. When you posted this message there will have been a big red notice that said: Please do NOT post programming questions or ads to this forum. For programming help please try the Forums. Secondly. The error message given, "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information." actually gives you the answer. [SARCASTIC]So it would seem that forum ettiquete notes are not all you have trouble reading.[/SARCASTIC] (Hmmmm.... I'm obviously having a worse morning that I thought.)


          My: Blog | Photos | Next SQL Presentation WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

          P Offline
          P Offline
          peterchen
          wrote on last edited by
          #4

          Advantage readers :)


          Pandoras Gift #44: Hope. The one that keeps you on suffering.
          aber.. "Wie gesagt, der Scheiss is' Therapie"
          boost your code || Fold With Us! || sighist | doxygen

          1 Reply Last reply
          0
          • S SEAGames22

            This is my code: this.oracleConnection1.ConnectionString = "user id=HMS;data source=HMS2005;password=HMS"; da = new System.Data.OracleClient.OracleDataAdapter(); cmd = new System.Data.OracleClient.OracleCommand("select A1,A2 from TEST",oracleConnection1); da.SelectCommand = cmd; cb = new System.Data.OracleClient.OracleCommandBuilder(da); daset =new DataSet(); da.Fill(daset); daset.Tables[0].Rows[0][0]= "123"; da.Update(daset); So When My program was run . it throw one error and error message is "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information." Help me!!!!!!!!!!:doh:

            J Offline
            J Offline
            Jerry Hammond
            wrote on last edited by
            #5

            SEAGames22 wrote: This is my code: this.oracleConnection1.ConnectionString = "user id=HMS;data source=HMS2005;password=HMS"; da = new System.Data.OracleClient.OracleDataAdapter(); cmd = new System.Data.OracleClient.OracleCommand("select A1,A2 from TEST",oracleConnection1); da.SelectCommand = cmd; cb = new System.Data.OracleClient.OracleCommandBuilder(da); daset =new DataSet(); da.Fill(daset); daset.Tables[0].Rows[0][0]= "123"; da.Update(daset); and this is my code: namespace _315C05 { /// /// Summary description for Redirect. /// public class Redirect : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here if(PostingForum==Lounge) { Response.Redirect("[http://www.codeproject.com/script/comments/forums.asp](http://www.codeproject.com/script/comments/forums.asp)[[^](http://www.codeproject.com/script/comments/forums.asp "New Window")]"); } } Hope that helps. Jerry Most people are willing to pay more to be amused than to be educated--Robert C. Savage, Life Lessons Toasty0.com Ladder League (beta)

            R G 2 Replies Last reply
            0
            • J Jerry Hammond

              SEAGames22 wrote: This is my code: this.oracleConnection1.ConnectionString = "user id=HMS;data source=HMS2005;password=HMS"; da = new System.Data.OracleClient.OracleDataAdapter(); cmd = new System.Data.OracleClient.OracleCommand("select A1,A2 from TEST",oracleConnection1); da.SelectCommand = cmd; cb = new System.Data.OracleClient.OracleCommandBuilder(da); daset =new DataSet(); da.Fill(daset); daset.Tables[0].Rows[0][0]= "123"; da.Update(daset); and this is my code: namespace _315C05 { /// /// Summary description for Redirect. /// public class Redirect : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here if(PostingForum==Lounge) { Response.Redirect("[http://www.codeproject.com/script/comments/forums.asp](http://www.codeproject.com/script/comments/forums.asp)[[^](http://www.codeproject.com/script/comments/forums.asp "New Window")]"); } } Hope that helps. Jerry Most people are willing to pay more to be amused than to be educated--Robert C. Savage, Life Lessons Toasty0.com Ladder League (beta)

              R Offline
              R Offline
              Roger Wright
              wrote on last edited by
              #6

              :laugh: "If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City

              1 Reply Last reply
              0
              • J Jerry Hammond

                SEAGames22 wrote: This is my code: this.oracleConnection1.ConnectionString = "user id=HMS;data source=HMS2005;password=HMS"; da = new System.Data.OracleClient.OracleDataAdapter(); cmd = new System.Data.OracleClient.OracleCommand("select A1,A2 from TEST",oracleConnection1); da.SelectCommand = cmd; cb = new System.Data.OracleClient.OracleCommandBuilder(da); daset =new DataSet(); da.Fill(daset); daset.Tables[0].Rows[0][0]= "123"; da.Update(daset); and this is my code: namespace _315C05 { /// /// Summary description for Redirect. /// public class Redirect : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here if(PostingForum==Lounge) { Response.Redirect("[http://www.codeproject.com/script/comments/forums.asp](http://www.codeproject.com/script/comments/forums.asp)[[^](http://www.codeproject.com/script/comments/forums.asp "New Window")]"); } } Hope that helps. Jerry Most people are willing to pay more to be amused than to be educated--Robert C. Savage, Life Lessons Toasty0.com Ladder League (beta)

                G Offline
                G Offline
                Ghazi H Wadi
                wrote on last edited by
                #7

                Toasty0 wrote: if(PostingForum==Lounge) Got My 5 :laugh:;P It is Illogical to define an inventor by his invention

                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