IDACanQueryDatabaseNames

Overview

IDACanQueryDatabaseNames contains a method to receive a list of database names for the current connection.

This example demonstrates how to use the IDACanQueryDatabaseNames interface:

var
  aConn:IDAConnection;
  aDBNames:IROStrings;
  aCanQueryDBNames:IDACanQueryDatabaseNames;
begin
  aConn := Schema.ConnectionManager.NewConnection('Northwind');

  if (Supports(aConn, IDACanQueryDatabaseNames, aCanQueryDBNames)) then
  begin
    aDBNames := aCanQueryDBNames.GetDatabaseNames;
    //aDBNames.Strings;
  end;
end;

Location

Implemented in

Required Methods


GetDatabaseNames

Returns the databases list in IROStrings format. You can use the strings property to expose the underlying TString instance wrapped by this interface.

function GetDatabaseNames: IROStrings

See Also