Once the database object connects, retrieve the database name with CTDatabase.GetName().
// display the database name
Console.Write("Database: {0}\n", ADatabase.GetName());
TOCIndex