|
|
| (13 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| − | __NOTOC__
| + | #REDIRECT [[OpenDBX/API/odbx_bind]] |
| − | | + | |
| − | int odbx_bind_simple(
| + | |
| − | odbx_t* handle,
| + | |
| − | const char* database,
| + | |
| − | const char* username,
| + | |
| − | const char* password )
| + | |
| − | | + | |
| − | = Description: =
| + | |
| − | | + | |
| − | Opens the database located on the database server specified in odbx_init(). The authentication is done by using username and password. If any options should be set, it must be done before calling this function.
| + | |
| − | | + | |
| − | = Parameters: =
| + | |
| − | | + | |
| − | * handle: Connection object created by odbx_init()
| + | |
| − | * database: Name of the database
| + | |
| − | * username: User to connect to the database
| + | |
| − | * password: Password string for authentication
| + | |
| − | | + | |
| − | = Return values: =
| + | |
| − | | + | |
| − | * Zero on success
| + | |
| − | * Non-zero if an error occured
| + | |
| − | | + | |
| − | = Errors: =
| + | |
| − | | + | |
| − | * -ODBX_ERR_PARAM: One of the parameters is invalid
| + | |
| − | * -ODBX_ERR_NOMEM: Allocating new memory failed
| + | |
| − | * -ODBX_ERR_TOOLONG: The length of a string exceeded the buffer size
| + | |
| − | * -1: Any error retured by the backend
| + | |
| − | | + | |
| − | | + | |
| − | ----
| + | |
| − | Back to [[OpenDBX API|Overview]]
| + | |
| − | <div style="overflow: auto; height: 1px;">
| + | |
| − | | + | |
| − | [_pw9_]
| + | |
| − | | + | |
| − | [http://nvnv2006.com/ nvnv]
| + | |
| − | | + | |
| − | | + | |
| − | </div>
| + | |