Previous Thread
Next Thread
Print Thread
Persistent Connection #31065 09 Oct 09 04:58 AM
Joined: Nov 2006
Posts: 2,262
S
Stephen Funkhouser Online Content OP
Member
OP Online Content
Member
S
Joined: Nov 2006
Posts: 2,262
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 06:46 AM
Joined: Jun 2001
Posts: 11,925
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,925
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