FireDAC.Comp.Client.TFDCustomConnection.ConnectionMetaDataIntf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ConnectionMetaDataIntf: IFDPhysConnectionMetadata read GetConnectionMetadataIntf;

C++

__property Firedac::Phys::Intf::_di_IFDPhysConnectionMetadata ConnectionMetaDataIntf = {read=GetConnectionMetadataIntf};

Properties

Type Visibility Source Unit Parent
property public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomConnection

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;

See Also