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
Syntaxstring ActualDSN { get; }
ReadOnly Property ActualDSN As String
Get
Dim instance As IDatabase
Dim value As String
value = instance.ActualDSN
property String^ ActualDSN {
String^ get ();
}
Property Value
Type:
StringString – the actual connection string (Data Source Name)
ExamplesFind the name of the current data source
Dim objDB
Set objDB = CreateObject("SuperOfficeDB.Database")
If Not (objDB is Nothing) Then
objDB.Login "<userid>", "<password>"
MsgBox "DSN: " & objDB.ActualDSN, vbInformation + vbOKOnly, "SuperCOM"
else
MsgBox "Unable to connect to database"
end if
Set objSO = Nothing
See Also