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

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.

This function is available only for client applications.

Return Values

MI_OK

The new database exists.

MI_ERROR

An exception was raised, and the database was not created.

Related Topics

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




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