Previous Thread
Next Thread
Print Thread
Persistent Connection #31065 09 Oct 09 11:58 AM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
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,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
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