Click or drag to resize

IDatabaseActualDSN Property

Actual DSN logged in, depends on superoffice.ini and travel status

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
string ActualDSN { get; }

Property Value

Type: String
String – the actual connection string (Data Source Name)
Examples

Find the name of the current data source

VB
Dim objDB
Set objDB = CreateObject("SuperOfficeDB.Database")

If Not (objDB is Nothing) Then
    objDB.Login "<userid>", "<password>"   ' Log in to the database
    MsgBox "DSN: " & objDB.ActualDSN, vbInformation + vbOKOnly, "SuperCOM"
else
    MsgBox "Unable to connect to database"
end if

Set objSO = Nothing

See Also