The ConnectString() function returns the name of the active data connection for ODBC or OLE DB connections. The function returns an empty string if no connect statement has been executed, or after a disconnect statement.
Syntax:
ConnectString()
Example
Result
LIB CONNECT TO 'Tutorial ODBC';
ConnectString:
Load ConnectString() as ConnectString AutoGenerate 1;
Returns
'Tutorial ODBC' in field ConnectString.
This examples assumes that you have an available data connection called Tutorial ODBC.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!