Function odbc_sys::SQLDriverConnect

source ·
pub unsafe extern "system" fn SQLDriverConnect(
    connection_handle: HDbc,
    window_handle: HWnd,
    in_connection_string: *const Char,
    string_length_1: SmallInt,
    out_connection_string: *mut Char,
    buffer_length: SmallInt,
    string_length_2: *mut SmallInt,
    DriverCompletion: DriverConnectOption
) -> SqlReturn
Expand description

An alternative to SQLConnect. It supports data sources that require more connection information than the three arguments in SQLConnect, dialog boxes to prompt the user for all connection information, and data sources that are not defined in the system information

Returns

SUCCESS, SUCCESS_WITH_INFO, ERROR, INVALID_HANDLE, SQL_NO_DATA, or SQL_STILL_EXECUTING