Connected or not connected

Hi All

We are working with both Delphi 3 (For some maintenance) & Delphi 5, and
connecting to MS SQL6.5, SQL7.0, & 2000 servers.

Is there an easy way to test whether the connection is still there and if
not re-establish the link.

Thanks in advance.

Richard Moore