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 connection, helpppppp!

Multiple connection, helpppppp!

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesysadminhelp
5 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.
  • G Offline
    G Offline
    gyokusei
    wrote on last edited by
    #1

    Can Someone show me any solutions to solve this problem? :confused::confused::confused: (When A planty of ppl try to connect to my database over asp.net page at the same time). I'm afraid my server will be "die" soon. :((:((:(( Thanks in-advanced!

    G 1 Reply Last reply
    0
    • G gyokusei

      Can Someone show me any solutions to solve this problem? :confused::confused::confused: (When A planty of ppl try to connect to my database over asp.net page at the same time). I'm afraid my server will be "die" soon. :((:((:(( Thanks in-advanced!

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

      Make sure that you close every Connection, DataAdapter and DataReader you use. --- b { font-weight: normal; }

      G 1 Reply Last reply
      0
      • G Guffa

        Make sure that you close every Connection, DataAdapter and DataReader you use. --- b { font-weight: normal; }

        G Offline
        G Offline
        gyokusei
        wrote on last edited by
        #3

        Sorry, I dont mention about source-code problem (I think I wrote very well :-D). I really want to ask you is how many connection can connect to the database as the same time? (for ex: e-learning, there are alot of ppl login to a class at the same time. What will happen?) How do I solve this prob? If I use remoting technology, I can get an instant of Connection object from server. So that, I dont worry about the quantity users who connect to the database. But I dont use that tech! OMG! I hope you can understand what I say! My English isnot good! :(( Try to help me plz!

        G 1 Reply Last reply
        0
        • G gyokusei

          Sorry, I dont mention about source-code problem (I think I wrote very well :-D). I really want to ask you is how many connection can connect to the database as the same time? (for ex: e-learning, there are alot of ppl login to a class at the same time. What will happen?) How do I solve this prob? If I use remoting technology, I can get an instant of Connection object from server. So that, I dont worry about the quantity users who connect to the database. But I dont use that tech! OMG! I hope you can understand what I say! My English isnot good! :(( Try to help me plz!

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

          That depends a lot on what kind of database you are using. Access database drivers can handle 64 concurrent connections. A real database server (for an example MySQL or MS SQL Server) can handle a lot more. As the duration of a connection to the database each time is only a few milliseconds, this means that you can have hundreds of visitors at the same time without running out of database connections. You can set a limit in the web server on how many threads will be used to process requests. If you set this number lower than the number of connections the database can handle, you will never ever run out of connections, assuming that each page only uses one connection at a time. --- b { font-weight: normal; }

          G 1 Reply Last reply
          0
          • G Guffa

            That depends a lot on what kind of database you are using. Access database drivers can handle 64 concurrent connections. A real database server (for an example MySQL or MS SQL Server) can handle a lot more. As the duration of a connection to the database each time is only a few milliseconds, this means that you can have hundreds of visitors at the same time without running out of database connections. You can set a limit in the web server on how many threads will be used to process requests. If you set this number lower than the number of connections the database can handle, you will never ever run out of connections, assuming that each page only uses one connection at a time. --- b { font-weight: normal; }

            G Offline
            G Offline
            gyokusei
            wrote on last edited by
            #5

            Thank you for replying me! Can you show me any source-codes or any ways to set a limit in the web server? Thank you in-advanced!

            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