UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

EDADRV_GetDBInfo Syntax RETCODE EDADRV_GetDBInfo(connhdl,infotype,dbinfo) Description The EDADRV_GetDBInfo function returns general information about the database to which the application is currently connected. Input Variables The following table describes the input variables. 1-234 UniBasic Commands Reference Type Variable Description EDA_T_CONN_HDL connhdl The connection handle. int infotype The information type. Valid values are: EDADRV_DBMS_NAME – The name of the database EDADRV_DBMS_VERSION – The database version. EDADRV_SERVER_NAME – The name of the instance on the external database. EDADRV_DATABASE_NAME – The name of the database. EDADRV_GetDBInfo Input Variables

Output Variable The following table describes the output variable. Type Variable Description EDA_T_RESULT * dbinfo The database information. EDADRV_GetDBInfo Output Variable Return Codes The following table describes the EDADRV_GetDBInfo return codes. Return Code Error Description 0 N/A Successful. 1 EDADRV_ERR_SYSTEM External system error. 101 EDADRV_ERR_MEMORY Internal memory allocation error. 102 EDADRV_INVALID_CONN_ID Invalid connection handle. 115 EDADRV_INVALID_INFOTYPE Invalid information type. EDADRV_GetDBInfo Return Codes EDADRV_GetDBInfo 1-235

EDADRV_GetDBInfo<br />

Syntax<br />

RETCODE EDADRV_GetDBInfo(connhdl,infotype,dbinfo)<br />

Description<br />

The EDADRV_GetDBInfo function returns general information about the database<br />

to which the application is currently connected.<br />

Input Variables<br />

The following table describes the input variables.<br />

1-234 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

Type Variable Description<br />

EDA_T_CONN_HDL connhdl The connection handle.<br />

int infotype The information type. Valid values are:<br />

EDADRV_DBMS_NAME – The name of the<br />

database<br />

EDADRV_DBMS_VERSION – The database<br />

version.<br />

EDADRV_SERVER_NAME – The name of<br />

the instance on the external database.<br />

EDADRV_DATABASE_NAME – The name<br />

of the database.<br />

EDADRV_GetDBInfo Input Variables

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!