FireDAC.Comp.Client.TFDCustomConnection.GetInfoReport
Delphi
function GetInfoReport(AList: TStrings;
AItems: TFDInfoReportItems = [riConnDef .. riKeepConnected]): TFDInfoReportStatus;
C++
TFDInfoReportStatus __fastcall GetInfoReport(System::Classes::TStrings* AList, TFDInfoReportItems AItems = (TFDInfoReportItems() << Firedac_Comp_Client__2::riConnDef << Firedac_Comp_Client__2::riFireDAC << Firedac_Comp_Client__2::riClientLog << Firedac_Comp_Client__2::riClient << Firedac_Comp_Client__2::riSessionHints << Firedac_Comp_Client__2::riSession << Firedac_Comp_Client__2::riTryConnect << Firedac_Comp_Client__2::riKeepConnected ));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCustomConnection |
Description
Populates a string list with a detailed report about the connection status.
Use the GetInfoReport method to get the detailed report about the connection status. The report consists of the optional sections controlled by the AItems
parameter:
Flag |
Section header |
Description |
---|---|---|
|
Connection definition parameters |
The complete list of a connection definition parameters. |
|
FireDAC info |
The detailed information about the FireDAC build, including version number, tool version, defines, Unicode mode. |
|
Client info |
The DBMS client loading log. When loading fails, then it includes the failure error message. |
|
Client info |
The detailed information about a DBMS client, when FireDAC successfully loaded the client. Otherwise--failure error message. |
|
Session info |
The possible incompatibilities between FireDAC, DBMS client, and DBMS server, when the connection is active or the |
|
Session info |
The detailed information about a DBMS session, when the connection is active or the |
The connection handling mode can be specified by the AItems
parameter:
Flag |
Description |
---|---|
|
When the connection is inactive, FireDAC tries to establish a connection. |
|
When the connection was inactive and FireDAC established it, FireDAC, on GetInfoReport exiting, will keep it active. Otherwise the connection will be closed. |
The report is put into an AList
string list. Applications can use this method to:
- Test connection to a DBMS.
- Report on the DBMS environment.
- Report failures.
See DBMS Environment Reports for detailed information about this method.