Sorry, that particular function returns either a True or False. I was confusing it initially with having a returned handle reference to a connection.
IF hConn && successful connection and server is up and running
ELSE && NOT hConn -- no usable connection, come back later
ENDIF
SQLSTRINGCONNECT( ) Function
http://msdn2.microsoft.com
Main Topics
Browse All Topics





by: CarlWarnerPosted on 2007-09-18 at 08:51:43ID: 19913979
You should evaluate the value returned by hConn. If a non-postive number is returned, you don't have a usable connection.
IF hConn>0 && successful connection and server is up and running
ELSE && no usable connection, come back later
ENDIF