Method GetLocalDatabaseType
GetLocalDatabaseType()
Retrieves the type of the local database.
string GetLocalDatabaseType()
Returns
- string
The type of the local database (MySQL, Microsoft SQL Server or Cassandra).
Examples
#if DBInfo
string databaseType = protocol.GetLocalDatabaseType();
protocol.Log("Local DB type is: " + databaseType);
#else
protocol.Log("This DataMiner version does not support requesting the type of the local database.");
#endif
Remarks
- Before using this method call, it is good practice to use “#if DBInfo” in order to check whether the GetLocalDatabaseType method is supported on the DataMiner Agent.
- Feature introduced in DataMiner version 9.0.0 (RN 10395).