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#
  4. problem with ADO :problem with inserting row in the same time

problem with ADO :problem with inserting row in the same time

Scheduled Pinned Locked Moved C#
helptutorialquestion
13 Posts 9 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.
  • H Offline
    H Offline
    Honeyboy_20
    wrote on last edited by
    #1

    Hi, I make a registration form but I have problem when 20 members register in the SAME TIME , what is the best strategy to handle this problem with inserting row in the same time using ado 2.0 and example if available.

    P L A B P 8 Replies Last reply
    0
    • H Honeyboy_20

      Hi, I make a registration form but I have problem when 20 members register in the SAME TIME , what is the best strategy to handle this problem with inserting row in the same time using ado 2.0 and example if available.

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Honeyboy_20 wrote:

      I have problem

      What are the symptoms? What database? What sort of client (Web, WinForms, etc.)?

      1 Reply Last reply
      0
      • H Honeyboy_20

        Hi, I make a registration form but I have problem when 20 members register in the SAME TIME , what is the best strategy to handle this problem with inserting row in the same time using ado 2.0 and example if available.

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

        What is your problem? Is it timeout or is it concurrency or is it something else? We don't do mind-reading here and we'll not be able to help you unless you are specific about your problem.

        1 Reply Last reply
        0
        • H Honeyboy_20

          Hi, I make a registration form but I have problem when 20 members register in the SAME TIME , what is the best strategy to handle this problem with inserting row in the same time using ado 2.0 and example if available.

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #4

          IMO, you don't have too much of an issue while doing an insert. An update or delete can create more issues in terms of concurrency. However, you can run a check on all existing users to probably check if the user does not already exist.

          Too much of heaven can bring you underground Heaven can always turn around Too much of heaven, our life is all hell bound Heaven, the kill that makes no sound

          1 Reply Last reply
          0
          • H Honeyboy_20

            Hi, I make a registration form but I have problem when 20 members register in the SAME TIME , what is the best strategy to handle this problem with inserting row in the same time using ado 2.0 and example if available.

            B Offline
            B Offline
            BobJanova
            wrote on last edited by
            #5

            Are you using the time as some sort of key? If so, don't. Either use an auto_increment column or a GUID as a key so it doesn't matter if you get two entries within the resolution of the timer.

            1 Reply Last reply
            0
            • H Honeyboy_20

              Hi, I make a registration form but I have problem when 20 members register in the SAME TIME , what is the best strategy to handle this problem with inserting row in the same time using ado 2.0 and example if available.

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              As you can see from the responses you have gathered here, people are having a real problem understanding what the issue you are suffering really is. As a hint, when posting a question, try to put in as much relevant detail as you can. A description of what you are trying to achieve, along with a relevant code snippet, details of your expected output and a description of the error will help you get a detailed answer to your problem. If you could edit your question to include this information, I look forward to helping you.

              Forgive your enemies - it messes with their heads

              My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

              1 Reply Last reply
              0
              • H Honeyboy_20

                Hi, I make a registration form but I have problem when 20 members register in the SAME TIME , what is the best strategy to handle this problem with inserting row in the same time using ado 2.0 and example if available.

                E Offline
                E Offline
                Ennis Ray Lynch Jr
                wrote on last edited by
                #7

                SCOPE_IDENTITY()

                Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

                1 Reply Last reply
                0
                • H Honeyboy_20

                  Hi, I make a registration form but I have problem when 20 members register in the SAME TIME , what is the best strategy to handle this problem with inserting row in the same time using ado 2.0 and example if available.

                  H Offline
                  H Offline
                  Herman T Instance
                  wrote on last edited by
                  #8

                  in the end it is not a problem. A database will handle each insert seperately so it will not add two or more rows at once.

                  In Word you can only store 2 bytes. That is why I use Writer.

                  H 1 Reply Last reply
                  0
                  • H Herman T Instance

                    in the end it is not a problem. A database will handle each insert seperately so it will not add two or more rows at once.

                    In Word you can only store 2 bytes. That is why I use Writer.

                    H Offline
                    H Offline
                    Honeyboy_20
                    wrote on last edited by
                    #9

                    I'make asp project but my problems happens when over 20 users register in the same time , i found that only 3 users register in db however all 20 users received message that they made registration successfully.

                    H 1 Reply Last reply
                    0
                    • H Honeyboy_20

                      I'make asp project but my problems happens when over 20 users register in the same time , i found that only 3 users register in db however all 20 users received message that they made registration successfully.

                      H Offline
                      H Offline
                      Herman T Instance
                      wrote on last edited by
                      #10

                      do you use statics or some kind?

                      In Word you can only store 2 bytes. That is why I use Writer.

                      H 1 Reply Last reply
                      0
                      • H Herman T Instance

                        do you use statics or some kind?

                        In Word you can only store 2 bytes. That is why I use Writer.

                        H Offline
                        H Offline
                        Honeyboy_20
                        wrote on last edited by
                        #11

                        No Static

                        H 1 Reply Last reply
                        0
                        • H Honeyboy_20

                          No Static

                          H Offline
                          H Offline
                          Herman T Instance
                          wrote on last edited by
                          #12

                          is there a try catch around the sqlCommand and is the possible exception caught and stored somewhere? That might give a better indictation

                          In Word you can only store 2 bytes. That is why I use Writer.

                          1 Reply Last reply
                          0
                          • H Honeyboy_20

                            Hi, I make a registration form but I have problem when 20 members register in the SAME TIME , what is the best strategy to handle this problem with inserting row in the same time using ado 2.0 and example if available.

                            M Offline
                            M Offline
                            Morton song
                            wrote on last edited by
                            #13

                            i am interesting about your system,it's a useful one with large amount of people? i think if members aren't concentrated at the same time ,you can delay some seconds to release the charge!

                            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