AppDB GetConnectionInfo() Method

(SBM On-Premise only) Provides information on the data source name, the name of the database, the name or IP address of the server that contains the database currently connected to SBM, and whether the connection is remote.

Function Signature

 bool GetConnectionInfo( string& dsn, string& dname, string& srvname, bool& remote )

bool GetConnectionInfo( Variant& dsn, Variant& dbname, Variant& srvname, 
                        Variant& remote )

Parameters

Parameter Type Description

dsn

string& or Variant&

(Output) The data source name from ODBC that the connection is using to access the database.

dbname

string& or Variant&

(Output) The full database name that the connection is accessing.

srvname

string& or Variant&

(Output) The server name that the connection is using to access the DBMS. This could be a machine name or an IP address.

remote

bool& or Variant&

(Output) Always false.

Return

Type Description

bool

Returns true if the method was successful; false if not.

Technical Details

SBM ModScript version: 11.3. Extended in 11.4.

Notes

None.

Related Topics

AppDb