ibec_OnlineDatabase
Syntax
function ibec_OnlineDatabase(Database : string; Options : string) : variant;
ibec_OnlineDatabase brings the database specified by the Database parameter online using the Firebird Services API.
The Options variable specifies additional connect and online mode parameters:
Connection options
User=<user_name> | User name |
Password=<password> | Password |
ClientLib=<path> | Path to the client library file |
ExpectedDB | see Example 3 below. |
Online mode option
Mode=<mode> | Online mode. Possible values are Normal, Multi and Single. If Mode is not specified Normal will be used by default. This option is available for Firebird 2.5 and above. |
ibec_OnlineDatabase returns NULL in case of success. Otherwise it returns an error message.
Examples
1. Bring a database online in normal mode
Res = ibec_OnlineDatabase('localhost:d:\data\mydb.fdb', 'ClientLib="d:\FBlientLibs\fbclient25.dll"; User=SYSDBA; Password=masterkey');
2. Bring a database online in single-user mode
Res = ibec_OnlineDatabase('localhost:d:\data\mydb.fdb', 'ClientLib="d:\FBlientLibs\fbclient25.dll"; User=SYSDBA; Password=masterkey; Mode=Single');
Res = ibec_OnlineDatabase('localhost:d:\mydb.fdb', 'ClientLib=C:\Program Files (x86)\HK-Software\IBExpert\firebird3\fbclient.dll; Password=masterkey; User=SYSDBA; ExpectedDB=d:\mydb.fdb');
back to top of page
<< ibec_CreateDatabase | IBEBlock | ibec_ShutdownDatabase >>