store SQLSTRINGCONNECT(; 'Driver={SQL Server};'+; 'SERVER=.......); TO gnConnHandle * your code goes here ?SQLGETPROP(gnConnHandle,"ConnectBusy") && will give you .T. or .F., or the message "connection handle is invalid" if it is 0 or already disconnected.>How do you check the state of a SQL connection?