UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
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
- Page 190 and 191: DCOUNT Syntax DCOUNT(str,delim) Des
- Page 192 and 193: DEACTIVATEKEY Syntax DEACTIVATEKEY
- Page 194 and 195: STATUS Code Example The following e
- Page 196 and 197: DEFFUN Syntax DEFFUN function.name
- Page 198 and 199: The preceding program calls the fol
- Page 200 and 201: Examples The following program segm
- Page 202 and 203: Examples The following program stat
- Page 204 and 205: In the next example, the program st
- Page 206 and 207: UniData SQL SELECT - For informatio
- Page 208 and 209: Examples In the following example,
- Page 210 and 211: Parameters The following table desc
- Page 212 and 213: DIGEST Syntax DIGEST(algorithm, dat
- Page 214 and 215: DIR Syntax DIR(file.expr) Descripti
- Page 216 and 217: STATUS Codes DISABLEDEC has the fol
- Page 218 and 219: DISPLAYWIDTH Syntax DISPLAYWIDTH (s
- Page 220 and 221: DQUOTE DQUOTE is a synonym for the
- Page 222 and 223: Related Commands UniBasic PRECISION
- Page 224 and 225: ECHO Syntax ECHO [ON | OFF | expr]
- Page 226 and 227: EDADRV_CloseStmt Syntax RETCODE EDA
- Page 228 and 229: EDADRV_Connect Syntax RETCODE EDADR
- Page 230 and 231: EDADRV_Disconnect Syntax RETCODE ED
- Page 232 and 233: 1-226 UniBasic Commands Reference
- Page 234 and 235: Return Codes The following table de
- Page 236 and 237: Output Variable The following table
- Page 238 and 239: Output Variables The following tabl
- Page 242 and 243: EDADRV_GetEDAAttr Syntax RETCODE ED
- Page 244 and 245: EDADRV_GetErrmsg Syntax RETCODE EDA
- Page 246 and 247: Input Variables The following table
- Page 248 and 249: EDADRV_LoadSymbols Syntax RETCODE E
- Page 250 and 251: Output Variables The following tabl
- Page 252 and 253: Return Codes The following table de
- Page 254 and 255: Input Variables The following table
- Page 256 and 257: STATUS Codes ENABLEDEC has the foll
- Page 258 and 259: Parameter Description dataLoc 1 - D
- Page 260 and 261: Parameters he following table descr
- Page 262 and 263: END Syntax END Description The UniB
- Page 264 and 265: Related Commands UniBasic CALL, CHA
- Page 266 and 267: Examples In the following example,
- Page 268 and 269: EQU Syntax EQU constant1 TO value1
- Page 270 and 271: In the next example, UniData replac
- Page 272 and 273: EXECUTE Syntax EXECUTE "str.expr" [
- Page 274 and 275: Parameter Description Reminder: The
- Page 276 and 277: Related Commands UniBasic COMMON, E
- Page 278 and 279: Parameter Description Examples In t
- Page 280 and 281: The program output is: 1-274 UniBas
- Page 282 and 283: EXP Syntax EXP(expr) Description Th
- Page 284 and 285: Examples The following program segm
- Page 286 and 287: In the next example, the program se
- Page 288 and 289: Options The value of option determi
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