FireDAC.Comp.Client.TFDCustomConnection.RDBMSKind

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDCustomConnection

Delphi

property RDBMSKind: TFDRDBMSKind read GetRDBMSKind;

C++

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

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