FireDAC.Comp.Client.TFDCustomConnection.RDBMSKind

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property RDBMSKind: TFDRDBMSKind read GetRDBMSKind;

C++

__property Firedac::Stan::Intf::TFDRDBMSKind RDBMSKind = {read=GetRDBMSKind, nodefault};

Properties

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

Description

Returns the currently connected DBMS brand.

The RDBMSKind property returns the brand of the DBMS to which the connection object is currently connected. If the connection is not active, then the property returns mkUnknown.

Example

case FDConnection1.RDBMSKind of
mkOracle:    s := 'select mySeq.NextVal from dual';
mkInterbase: s := 'select gen_id(myGen, 1) from rdb$database';
else         Exit;
end;
FDQuery1.Open(s);

See Also