Hitachi

Hitachi Advanced Database Application Development Guide


16.12.1 SQLDisconnect

Organization of this subsection

(1) Function

This ODBC function closes the connection associated with a specific connection handle.

(2) Format

SQLRETURN SQLDisconnect
(
  SQLHDBC           ConnectionHandle    /* In */
)

(3) Arguments

ConnectionHandle

Specifies a connection handle.

(4) Return value

This ODBC function returns SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.

(5) SQLSTATE

This ODBC function returns one of the following SQLSTATE values:

SQLSTATE

Description

Remarks

Returned

01000

General warning

--

N

01002

Disconnection error

N

08003

Connection does not exist

Y

25000

Invalid transaction status

Y

HY000

General error

N

HY001

Memory allocation error

N

HY010

Function sequence error

Y

HY013

Memory management error

N

HYT01

Connection timeout expired

N

IM001

Driver does not support this function

N

Legend:

Y: This SQLSTATE might be returned by the HADB ODBC driver.

N: This SQLSTATE is not returned by the HADB ODBC driver.

--: None