Using the Services API
The ODBC/JDBC driver wraps a great many of the Services API functions.The management console built into the Windows DSN interface provides examples of most of them.One thing you cannot do via the console is create databases.Fear not! the driver has it wrapped!
In the Connection chapter is a table of the keywords available to signify the values for attachments via Firebird’s “regular” API.The table below provides the keywords for the KEYWORD=value
parameters for connecting to the server and launching a service request.These are additional to the relevant connection parameters.For some cases, the default settings from the DSN, if used, will be correct for Service requests.
Keyword | Description | More Information |
---|---|---|
|
Backup file |
This is a filesystem path and file name.Unlike a database, a backup path can be a network storage address. |
|
Path and name of the log file for the service |
Optional;valid for any service that provides a log file option.The same filesystem rules apply as for backup files. |
|
Create database |
See the examples below for usage |
|
Backup database |
The path and name of the database backup file, for backups and restores. |
|
The network path and name of the database to which a backup is to be restored.This cannot be a network storage address.The file name part can be an alias, provided the alias exists. |
|
|
Repair database |
Local path to the database to be repaired or validated.Remote access is invalid. |
|
Compact database |
Not currently applicable to Firebird databases. |
|
Drop database |
Not currently applicable to Firebird databases. |