Share via


SqlSystem.loginDSN Method

Definition

Retrieves the open database connectivity (ODBC) data source name (DSN) used to connect to the database.

public:
 virtual System::String ^ loginDSN();
public virtual string loginDSN ();
abstract member loginDSN : unit -> string
override this.loginDSN : unit -> string
Public Overridable Function loginDSN () As String

Returns

The name of the ODBC data source name that is used for connecting to the database.

Remarks

The default DSN is "BMSDSN".

The following example demonstrates the loginDSN method.

{ 
    SqlSystem SqlSystem = new SqlSystem(); 
    print SqlSystem.loginDSN(); 
}

Applies to