Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection question

Status
Not open for further replies.

dhar2611

Programmer
Jan 4, 2006
23
0
0
AU
Hi Guys

Just help me out with this.

Everything on my system is working fine. I just have a quick question. When I retrieve information from database. I make a connection and retrieve information. Some pages I forget to close the connection in my code. Do you think this will cause problem with the server.

Will this slow down the server or will the connection automaticall close when the user leaves the page.

Please help me out on this.

Dave
 
Yes, Yes and Yes

Always close connections to anything when you are finished with them. That being said even if there is no problems seen at that time

 
yes leave the connection open will cause the server to slow down and it is a good practice to always close all the connection and record set objects and set them to nothing explicity...

-DNG
 
No worries. Thanks for the information. I'll go back and change my code.

Thanks buddy. Great help....
 
i meant to say...leaving the connection will cause...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top