If you dont close a connection in a Web Application, What will happen?

Showing Answers 1 - 4 of 4 Answers

In Web Application if a connection is not closed,it will keep on adding.
At one point error will be dispalyed that maximum number of connections reached.
Only DBA's can kill the connection at that time.
It is always better to close the connection and make it to null in the finally block.

  Was this answer useful?  Yes

anand chaubey

  • Aug 7th, 2011
 

If you don't close the connection,your application will eat up all your connection and your application will run out of connection and server will give error as no active connection and your application won't work.

  Was this answer useful?  Yes

madhu

  • Sep 5th, 2011
 

Always you should close connection. In some cases exception is thrown. When more processes get active in the same.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions