ibec_CreateConnection

The ibec_CreateConnection creates an active database connection.

Syntax

 ibec_CreateConnection(ConnectionType : integer, ConnectionParams : string);

The WireCompression option (if both client and server support them) was introduced in IBExpert version 2020.01.06. To enable compression it is necessary to specify 'WireCompression=TRUE' (or just 'WireCompression') in the options string.

Example

execute ibeblock
 as
 begin
   FBSrc  = ibec_CreateConnection(__ctFirebird,'DBName="localhost:d:\DB1.FDB";
   ClientLib=fbclient.dll;
   user=SYSDBA; password=masterkey; names=UTF8; sqldialect=3');
   FBDest = ibec_CreateConnection(__ctFirebird,'DBName="localhost:d:\DB2.FDB";
   ClientLib=fbclient.dll;
   user=SYSDBA; password=masterkey; names=UTF8; sqldialect=3');
   ibec_UseConnection(FbSrc);


   ibec_CloseConnection(FBSrc);
   ibec_CloseConnection(FBDest);
 end

See: Example: ODBC Access

back to top of page
<< ibec_DropDatabase | IBEBlock | ibec_RegisterFBCryptKey >>