[][src]Function odbc::ffi::SQLConnect

pub unsafe extern "system" fn SQLConnect(
    connection_handle: *mut Dbc,
    server_name: *const u8,
    name_length_1: i16,
    user_name: *const u8,
    name_length_2: i16,
    authentication: *const u8,
    name_length_3: i16
) -> SQLRETURN

SQLConnect establishes connections to a driver and a data source. The connection handle references storage of all information about the connection to the data source, including status, transaction state, and error information.

Returns

SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, SQL_INVALID_HANDLE, or SQL_STILL_EXECUTING