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. Database Connection problem

Database Connection problem

Scheduled Pinned Locked Moved ASP.NET
helpdatabasecsharpasp-netquestion
3 Posts 3 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.
  • E Offline
    E Offline
    eng_lamia
    wrote on last edited by
    #1

    HI , I have an ASP.net page that contains a function with a for loop in , inside the for loop i query the database , i use a class which i have identified my connection in and the page inherits that class , the problem is the function doesn't see the connection and creates a new connection every time inside the loop , which caused a database maximum pool error , please help , why doesn't my function create a new connection each time ??? and why doesn't it access the connection object of the page ??? Thanks

    T 1 Reply Last reply
    0
    • E eng_lamia

      HI , I have an ASP.net page that contains a function with a for loop in , inside the for loop i query the database , i use a class which i have identified my connection in and the page inherits that class , the problem is the function doesn't see the connection and creates a new connection every time inside the loop , which caused a database maximum pool error , please help , why doesn't my function create a new connection each time ??? and why doesn't it access the connection object of the page ??? Thanks

      T Offline
      T Offline
      tonaxxl
      wrote on last edited by
      #2

      but the dataset at a session variable and then get the table or the dataset and get data from it

      A 1 Reply Last reply
      0
      • T tonaxxl

        but the dataset at a session variable and then get the table or the dataset and get data from it

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

        my problem is in the too many connections that are created

        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