SBM ModScript Reference → Programming SBM ModScript → Object Types → AppDb → 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.
bool GetConnectionInfo( string& dsn, string& dname, string& srvname, bool& remote ) bool GetConnectionInfo( Variant& dsn, Variant& dbname, Variant& srvname, Variant& remote )
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. |
Type | Description |
---|---|
bool |
Returns true if the method was successful; false if not. |
SBM ModScript version: 11.3. Extended in 11.4.
None.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.