Function odbc_sys::SQLConnect
source · pub unsafe extern "system" fn SQLConnect(
connection_handle: HDbc,
server_name: *const Char,
name_length_1: SmallInt,
user_name: *const Char,
name_length_2: SmallInt,
authentication: *const Char,
name_length_3: SmallInt
) -> SqlReturn
Expand description
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
SUCCESS
, SUCCESS_WITH_INFO
, ERROR
, INVALID_HANDLE
, or
SQL_STILL_EXECUTING