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. Web Development
  3. ASP.NET
  4. multiple update in one trip

multiple update in one trip

Scheduled Pinned Locked Moved ASP.NET
sysadminquestionannouncement
13 Posts 6 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
    sood_is_in
    wrote on last edited by
    #1

    how can i do mulitple update in one trip back to the server Love you all

    G A T 3 Replies Last reply
    0
    • S sood_is_in

      how can i do mulitple update in one trip back to the server Love you all

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      What is it that you wish to update? Records in a database? What is the problem that you have with multiple updates? --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • S sood_is_in

        how can i do mulitple update in one trip back to the server Love you all

        A Offline
        A Offline
        absprogrammer
        wrote on last edited by
        #3

        i'm not getting your problem:suss: please explain your problem in detail so that if possible i can help you.

        1 Reply Last reply
        0
        • S sood_is_in

          how can i do mulitple update in one trip back to the server Love you all

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          1. this is a repost 2. this is a cross post 3. this is not possible X|


          TOXCCT >>> GEII power
          [toxcct][VisualCalc 2.20][VisualCalc 3.0]

          D 1 Reply Last reply
          0
          • T toxcct

            1. this is a repost 2. this is a cross post 3. this is not possible X|


            TOXCCT >>> GEII power
            [toxcct][VisualCalc 2.20][VisualCalc 3.0]

            D Offline
            D Offline
            Daniel Santillanes
            wrote on last edited by
            #5

            May be it is possible?? I saw in an article that you can execute several queries by separating several sql statements with a ';'. You may want to try that. Example: update users set name = 'someone' where id = 1 ; update addresses set address = 'someplace' where id = 1 By the way, this should be found / asked in SQL / ADO.NET Message board. daniero -- modified at 10:25 Tuesday 17th January, 2006

            T D 2 Replies Last reply
            0
            • D Daniel Santillanes

              May be it is possible?? I saw in an article that you can execute several queries by separating several sql statements with a ';'. You may want to try that. Example: update users set name = 'someone' where id = 1 ; update addresses set address = 'someplace' where id = 1 By the way, this should be found / asked in SQL / ADO.NET Message board. daniero -- modified at 10:25 Tuesday 17th January, 2006

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              what's that crap ? the ';' is only the ending character for sql statements. never this will be once statement... one more thing. you told this to me but i'm not the one who asked the question, and if you had read mine, you'd seen that this is a repost (which means the question was already posted) and a cross post (which mean the question has been asked another forum)...


              TOXCCT >>> GEII power
              [toxcct][VisualCalc 2.20][VCalc 3.0 soon...] -- modified at 11:47 Tuesday 17th January, 2006

              D 1 Reply Last reply
              0
              • T toxcct

                what's that crap ? the ';' is only the ending character for sql statements. never this will be once statement... one more thing. you told this to me but i'm not the one who asked the question, and if you had read mine, you'd seen that this is a repost (which means the question was already posted) and a cross post (which mean the question has been asked another forum)...


                TOXCCT >>> GEII power
                [toxcct][VisualCalc 2.20][VCalc 3.0 soon...] -- modified at 11:47 Tuesday 17th January, 2006

                D Offline
                D Offline
                Daniel Santillanes
                wrote on last edited by
                #7

                Oh sorry, I told that to you, I just wanted to give an answer to the user of the question, I didn't see it was to you I was replying to. This is the article I'm talking about: ADO.NET for the Object-Oriented Programmer[^] In the Loading Hierarchical Data section. Sorry for the misunderstanding daniero -- modified at 10:32 Tuesday 17th January, 2006

                T 1 Reply Last reply
                0
                • D Daniel Santillanes

                  Oh sorry, I told that to you, I just wanted to give an answer to the user of the question, I didn't see it was to you I was replying to. This is the article I'm talking about: ADO.NET for the Object-Oriented Programmer[^] In the Loading Hierarchical Data section. Sorry for the misunderstanding daniero -- modified at 10:32 Tuesday 17th January, 2006

                  T Offline
                  T Offline
                  toxcct
                  wrote on last edited by
                  #8

                  arf, you didn't undertand me. of course it is possible to place a ';' between 2 sql queries but it will actually result into 2 effective statements, not once ! and you could write like this, 3, 4 and more more queries, for the simple reason that ADO.NET don't analyse the SQL query and calling then the sql server ; it does pass the whole string to the server, ,and the server parses it. this is a sql problem, not an ADO, ODBC, or whatever one...


                  TOXCCT >>> GEII power
                  [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

                  D 1 Reply Last reply
                  0
                  • T toxcct

                    arf, you didn't undertand me. of course it is possible to place a ';' between 2 sql queries but it will actually result into 2 effective statements, not once ! and you could write like this, 3, 4 and more more queries, for the simple reason that ADO.NET don't analyse the SQL query and calling then the sql server ; it does pass the whole string to the server, ,and the server parses it. this is a sql problem, not an ADO, ODBC, or whatever one...


                    TOXCCT >>> GEII power
                    [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

                    D Offline
                    D Offline
                    Daniel Santillanes
                    wrote on last edited by
                    #9

                    roger daniero

                    T 1 Reply Last reply
                    0
                    • D Daniel Santillanes

                      roger daniero

                      T Offline
                      T Offline
                      toxcct
                      wrote on last edited by
                      #10

                      what ? :confused::~


                      TOXCCT >>> GEII power
                      [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

                      D 1 Reply Last reply
                      0
                      • T toxcct

                        what ? :confused::~


                        TOXCCT >>> GEII power
                        [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

                        D Offline
                        D Offline
                        Daniel Santillanes
                        wrote on last edited by
                        #11

                        I think you are annoyed with that other person, I don't want to be a nuisance as well, we are here just to help each other / other people, not to create problems between us. So 'Roger' meant I understand what you meant. daniero

                        T 1 Reply Last reply
                        0
                        • D Daniel Santillanes

                          I think you are annoyed with that other person, I don't want to be a nuisance as well, we are here just to help each other / other people, not to create problems between us. So 'Roger' meant I understand what you meant. daniero

                          T Offline
                          T Offline
                          toxcct
                          wrote on last edited by
                          #12

                          daniero wrote:

                          So 'Roger' meant I understand what you meant.

                          ok, didn't know that

                          daniero wrote:

                          we are here just to help each other / other people, not to create problems between us.

                          there's no problem, i just found that you talked about something you didn't really know, or you express it a bad manner, that's all. nevermind, :rose:


                          TOXCCT >>> GEII power
                          [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

                          1 Reply Last reply
                          0
                          • D Daniel Santillanes

                            May be it is possible?? I saw in an article that you can execute several queries by separating several sql statements with a ';'. You may want to try that. Example: update users set name = 'someone' where id = 1 ; update addresses set address = 'someplace' where id = 1 By the way, this should be found / asked in SQL / ADO.NET Message board. daniero -- modified at 10:25 Tuesday 17th January, 2006

                            D Offline
                            D Offline
                            Dave Kreskowiak
                            wrote on last edited by
                            #13

                            Multiple statements (batches) work in SQL Server, but not in Access databases. Jet doesn't support them. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                            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