Re: SQL reconnect procedures

2012-10-09 Thread Bob Sneidar
Thanks Pete. What I do now is I have my own library of calls for opening a connection (which is really my own internal system of checking to make sure the parameters are in order and setting a global if successful) then for reconnecting, which is really making a connection in the LC sense, the

Re: SQL reconnect procedures

2012-10-09 Thread Peter Haworth
I'm assuming this is mySQL? There is a server setting that determines the inactivity timeout period. It's either wait_timeout for a non-interactive client or interactive_timeout for an interactive client. I assume that LC opens mySQL dbs as an interactive client. According to the mySQL document

Re: SQL reconnect procedures

2012-10-09 Thread Bob Sneidar
I was getting disconnected from On-Rev within an hour of inactivity, and all my database calls failed when the connection was closed by the host. Also, certain network outages or problems can cause managed switches to reset, notably excessive broadcasts, and when this happens, the SQL connection

Re: SQL reconnect procedures

2012-10-09 Thread stephen barncard
well "COMMIT/ROLLBACK" should handle the possibility of data loss. As far as "connections" I've found that there is little time difference between being 'always connected' and making a connection open and close per transaction, unless one is hitting it repeatedly for a single result (as I had to t