HomeActive Query BuilderMultiple Database

Multiple Database


How can i display all the DB name from Single DBserver in ActiveQueryBuilder?
Srinivasan M | email
January 8 2009, 12:27 PM
Use GetDatabaseList() method of the QueryBuilder instance:

List<String> dbList = new List<string>();

queryBuilder1.GetDatabaseList(dbList);

foreach (String s in dbList)
{
Trace.WriteLine(s);
}
Eugene Starkov | email
2 days, 13 hours since original post
To load database objects from each database to the query builder, use QueryBuilder.LoadMetadataByMask('%', '%', s) method. (s is the name of database, as it used in the previous example)
Sergey Smagin | email
2 days, 15 hours since original post
This topic is closed