FireDAC.Comp.Client.TFDCustomConnection.ConnectionMetaDataIntf
Delphi
property ConnectionMetaDataIntf: IFDPhysConnectionMetadata read GetConnectionMetadataIntf;
C++
__property Firedac::Phys::Intf::_di_IFDPhysConnectionMetadata ConnectionMetaDataIntf = {read=GetConnectionMetadataIntf};
Contents
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;