Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is X?
Message
General information
Forum:
Games
Category:
Trivia
Title:
Miscellaneous
Thread ID:
00752760
Message ID:
00753257
Views:
49
Hi Leland,

I just came to this site http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6630&lngWId=4 and by quickly inspecting this code it seems that the connection must be open the whole time, the page is open. So, does it mean, that it's not the best technique?

Thanks in advance for your comments.


>Hi Paul.
>
>After giving this some more thought, I must agree with you. For one thing, persistent connections do require more resources with the only benefit of being a little faster. They also tie up a connection handle during the duration of the session, so the server might run out of connection handles during heavy loads. Having a connection open only for as long as it takes to submit the data is definitely the way to go for a web app. Also, I'm not sure there is a SQL 92 compliant command that would return the connection handle anyway. It seem like this would be fundamental, since if the connection exists, a proper authentication has occurred, so it seem like there would be some standard SQL command that would return the connection handle. When using the microsoft OLE DB provider, there is a sqlgetconnectattr command that could be used, but I'm not sure ASP can use OLE DB. I didn't really find a solution with which I'm totally confortable. The session variable route has both pros and
>cons and seem to be better suited to a Microsoft setting using IIS, asp or asp.net, which mean the app might not port satisfactorily to a client running a Unix/Linux web server; although, the apache web serve does now support asp.
>
>LelandJ
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform