Hello,
I would like to know if i can have one connection object created for a particular session so that i dont have to keep connecting to the database whenever any data is needed.please tell me how i can do this.
Something to keep in mind is that if you are using Access, it will typically fail around 10 concurrent connections, sometimes it will even fail at 3. If you do session level connections, be prepared for your DB to fail on you.
If you are still interested in doing session level connections, just use normal session variable notation.
eg:
set Session("mySessionLevelConnection" = Server.CreateObject(...)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.