informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_dbcreate()

The mi_dbcreate() function creates a new database on the given connection.

Syntax

Usage

This call is equivalent to the SQL CREATE DATABASE statement. Part of the argument dbinfo specifies the database name. On entry, there must be no logged-in database active on the given connection.

For additional information about the MI_DATABASE_INFO structure, see the description of the mi_get_database_info() function.

Return Values

MI_OK indicates that the function was successful; the new database exists.
MI_ERROR indicates that the function was not successful. An exception was raised, and the database was not created.

Related Topics

See the descriptions of the following functions: mi_server_connect(), mi_login(), mi_open(), mi_get_database_info(), and mi_dbdrop().


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved