Previous Thread
Next Thread
Print Thread
Persistent Connection #31065 09 Oct 09 11:58 AM
Joined: Nov 2006
Posts: 2,192
S
Stephen Funkhouser Online Content OP
Member
OP Online Content
Member
S
Joined: Nov 2006
Posts: 2,192
When a program exits does a database connection automatically get closed if you haven't disconnected and closed the connection in the program?

If no, would you be able to use the same connection if you still had the connection handle?


Stephen Funkhouser
Diversified Data Solutions
Re: Persistent Connection #31066 10 Oct 09 01:46 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
When A-Shell itself exits, every handled owned by the process should be automatically deleted.

But when a mere RUN program terminates, only the regular file channels used by the program are closed. Sockets and database connection handles should remain alive (provided you have a way of remembering the handle).


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3