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. SQL Server Maximum Concurrent Connection

SQL Server Maximum Concurrent Connection

Scheduled Pinned Locked Moved Web Development
sql-serverdatabasesysadminhelpquestion
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.
  • T Offline
    T Offline
    TPN
    wrote on last edited by
    #1

    I'm using MSSQL Server 2000, the licensing mode is Perseat License mode with 5 Client Access Linceses (5 devices). As I know, there are maximum 5 concurrent connections to SQL Server depending on that lincesing information. To test my knowledge, I write the code below in an ASP page: Dim gblDBConn1, _ gblDBConn2, _ gblDBConn3, _ gblDBConn4, gblDBConn5, _ gblDBConn6, _ Dim sCnn sCnn = "Provider=SQLOLEDB;Initial Catalog=mydb;Data Source=server;UID=sa; PWD=pwd;" Set gblDBConn1 = Server.CreateObject("ADODB.Connection") Set gblDBConn2 = Server.CreateObject("ADODB.Connection") Set gblDBConn3 = Server.CreateObject("ADODB.Connection") Set gblDBConn4 = Server.CreateObject("ADODB.Connection") Set gblDBConn5 = Server.CreateObject("ADODB.Connection") Set gblDBConn6 = Server.CreateObject("ADODB.Connection") gblDBConn1.ConnectionString = sCnn gblDBConn2.ConnectionString = sCnn gblDBConn3.ConnectionString = sCnn gblDBConn4.ConnectionString = sCnn gblDBConn5.ConnectionString = sCnn gblDBConn6.ConnectionString = sCnn gblDBConn1.Open gblDBConn2.Open gblDBConn3.Open gblDBConn4.Open gblDBConn5.Open gblDBConn6.Open The page works fine although it creates 6 concurrent connections. What happen? I think that the maximum concurrent connections is 5 and the sixth will fail. I'm so confused. Please explain me! Thank you for any help.

    N 1 Reply Last reply
    0
    • T TPN

      I'm using MSSQL Server 2000, the licensing mode is Perseat License mode with 5 Client Access Linceses (5 devices). As I know, there are maximum 5 concurrent connections to SQL Server depending on that lincesing information. To test my knowledge, I write the code below in an ASP page: Dim gblDBConn1, _ gblDBConn2, _ gblDBConn3, _ gblDBConn4, gblDBConn5, _ gblDBConn6, _ Dim sCnn sCnn = "Provider=SQLOLEDB;Initial Catalog=mydb;Data Source=server;UID=sa; PWD=pwd;" Set gblDBConn1 = Server.CreateObject("ADODB.Connection") Set gblDBConn2 = Server.CreateObject("ADODB.Connection") Set gblDBConn3 = Server.CreateObject("ADODB.Connection") Set gblDBConn4 = Server.CreateObject("ADODB.Connection") Set gblDBConn5 = Server.CreateObject("ADODB.Connection") Set gblDBConn6 = Server.CreateObject("ADODB.Connection") gblDBConn1.ConnectionString = sCnn gblDBConn2.ConnectionString = sCnn gblDBConn3.ConnectionString = sCnn gblDBConn4.ConnectionString = sCnn gblDBConn5.ConnectionString = sCnn gblDBConn6.ConnectionString = sCnn gblDBConn1.Open gblDBConn2.Open gblDBConn3.Open gblDBConn4.Open gblDBConn5.Open gblDBConn6.Open The page works fine although it creates 6 concurrent connections. What happen? I think that the maximum concurrent connections is 5 and the sixth will fail. I'm so confused. Please explain me! Thank you for any help.

      N Offline
      N Offline
      Nino_1
      wrote on last edited by
      #2

      TPN, It looks like you have 6 concurrent ADO Sessions through ASP, however, you only have one client session (TCP Session) or (Named Pipes). if you have 5 concurrent connections via machines with IP Addresses I'm sure that SQL will throw an error in the log stating that you have maxed out your connections. Tony

      T 1 Reply Last reply
      0
      • N Nino_1

        TPN, It looks like you have 6 concurrent ADO Sessions through ASP, however, you only have one client session (TCP Session) or (Named Pipes). if you have 5 concurrent connections via machines with IP Addresses I'm sure that SQL will throw an error in the log stating that you have maxed out your connections. Tony

        T Offline
        T Offline
        TPN
        wrote on last edited by
        #3

        Thanks Tony very much.

        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