FireDAC.Comp.Client.TFDCustomConnection.ConnectionMetaDataIntf
| [–] Properties | |
|---|---|
| Type: property | |
| Visibility: public | |
| Source: FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp | |
| Unit: FireDAC.Comp.Client | |
| Parent: TFDCustomConnection | |
Delphi
property ConnectionMetaDataIntf: IFDPhysConnectionMetadata read GetConnectionMetadataIntf;
C++
__property Firedac::Phys::Intf::_di_IFDPhysConnectionMetadata ConnectionMetaDataIntf = {read=GetConnectionMetadataIntf};
Description
Returns an IFDPhysConnectionMetadata interface.
The ConnectionMetaDataIntf property returns a reference to the IADPhysConnectionMetadata interface. The IFDPhysConnectionMetadata interface allows recognition of a DBMS behavior.
Example
procedure TMainForm.Button2Click(Sender: TObject);
var
  oMetaIntf: IFDPhysConnectionMetadata;
begin
  // get client and server versions
  oMetaIntf := FDConnection1.ConnectionMetaDataIntf;
  try
    ShowMessage(Format('Client version: %.10d; Server version: %.10d',
      [oMetaIntf.ClientVersion, oMetaIntf.ServerVersion]));
  finally
    oMetaIntf:= nil; // always release the Interface before you close the connection
  end;
end;