|
AnyDAC
|
Returns the brand of DBMS currently connected.
The RDBMSKind property returns the brand of the DBMS, to which connection object is currently connected. If connection is not active, then property returns mkUnknown.
property RDBMSKind: TADRDBMSKind;
TADRDBMSKind, Connected
case ADConnection1.RDBMSKind of mkOracle: s := 'select mySeq.NextVal from dual'; mkInterbase: s := 'select gen_id(myGen, 1) from rdb$database'; else Exit; end; ADQuery1.Open(s);
|
What do you think about this topic? Send feedback!
|