INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

mi_login()

The mi_login() function opens a database on the current connection.

Syntax

Usage

Only one database can be associated with a given connection at a time.

For a discussion on establishing a connection with mi_server_connect() and mi_login(), see "Connections with mi_server_connect() and mi_login()".

The MI_DATABASE_INFO structure is shown in the description of the mi_get_database_info() function. For additional information about MI_DATABASE_INFO and other data structures, see "Information Descriptors".

Return Values

MI_OK

The function was successful. A satisfactory connection is made.

MI_ERROR

The function was not successful. The database does not exist, or the user does not have permission to access the database.

Related Topics

For additional information, see the descriptions of the following functions: mi_close(), mi_get_database_info(), mi_open(), and mi_server_connect().




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.