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=VIT-34;database=AgilePointDB;trusted_Connection=yes
*/