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

Output Variable<br />

The following table describes the output variable.<br />

Type Variable Description<br />

EDA_T_RESULT * dbinfo The database information.<br />

EDADRV_GetDBInfo Output Variable<br />

Return Codes<br />

The following table describes the EDADRV_GetDBInfo return codes.<br />

Return<br />

Code Error Description<br />

0 N/A Successful.<br />

1 EDADRV_ERR_SYSTEM External system error.<br />

101 EDADRV_ERR_MEMORY Internal memory allocation error.<br />

102 EDADRV_INVALID_CONN_ID Invalid connection handle.<br />

115 EDADRV_INVALID_INFOTYPE Invalid information type.<br />

EDADRV_GetDBInfo Return Codes<br />

EDADRV_GetDBInfo 1-235

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

Saved successfully!

Ooh no, something went wrong!