Get Database Information

API Type

Web Services

Description

Retrieves the database information of the current server configuration.

Syntax

public virtual DatabaseInfo GetDatabaseInfo()

Parameters

Name Description
None Not Applicable

Output

A DatabaseInfo object that represents the database information of the system.

Example

IWFAdminService svc = GetAdminService();

try
	{
    DatabaseInfo dbInfo = svc.GetDatabaseInfo();
    
    if (dbInfo != null)
	   {                   
       Console.WriteLine("AgilePoint System Database Information:");
       Console.WriteLine("Vendor: {0}", dbInfo.Vendor);
       Console.WriteLine("Provider: {0}", dbInfo.Provider);
       Console.WriteLine("Connection string: {0}", dbInfo.Connstr);
	   }
    }
    
catch (Exception ex)
	{
    Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
	}
/*
This example produces the following results:
AgilePoint System Database Information:
Vendor: MSSQLDatabase
Provider:
Connection string: application name=AgilePoint Server;connection
lifetime=5;min pool
size=10;server=Demo3;database=AgilePointDB;trusted_Connection=yes
*/

Supported Versions

4.6 and higher