Mike Lewis
Programmer
A client has just asked me a question which I couldn't answer. I'm sure some of you folk can help.
He uses SQL Pass-Through (SPT) against a back end. He obtains a connection handle at the start of the session, and keeps it active until close down. This works fine.
He now wants to set the connection's IdleTimout property, so that the connection will close after so-many minutes of inactivity. His question is: How does he detect that the timeout has happened?
In other words, every time he calls an SPT function, he needs to check to see if the connection is still active, and to re-connect if it is not. How does he make that check?
I'm sure there is a simple way of doing this, but I can't think what it is.
Thanks in advance.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk
He uses SQL Pass-Through (SPT) against a back end. He obtains a connection handle at the start of the session, and keeps it active until close down. This works fine.
He now wants to set the connection's IdleTimout property, so that the connection will close after so-many minutes of inactivity. His question is: How does he detect that the timeout has happened?
In other words, every time he calls an SPT function, he needs to check to see if the connection is still active, and to re-connect if it is not. How does he make that check?
I'm sure there is a simple way of doing this, but I can't think what it is.
Thanks in advance.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk