SQLDisconnect

SQLDisconnect closes the connection associated with a specific connection handle.

The following table describes the SQLSTATE and error values for SQLDisconnect.
SQLSTATE Error value Error message
01000 -11001 General warning
01002 -11002 Disconnect error
08003 -11017 Connection not open
25000 -11032 Invalid transaction state
S1000 -11060 General error
S1001 -11061 Memory-allocation failure
S1010 -11067 Function-sequence error
08S01 -11301 A protocol error has been detected. Current connection is closed.