What does DPB mean in Firebird, and how to use isc_dpb_trusted_auth
parameter?
相关问题
- Firebird 2.5 exception handling within autonomous
- “The location of Firebird Client Library could not
- Get last month data from first day until last day
- How can I measure the amount of space taken by blo
- Firebird Error while trying to create file, Permis
相关文章
- How to execute transactions (or multiple sql queri
- How to configure Jaybird with hibernate
- Firebird 3 sysdba password stunning issue
- “Unable to complete network request” or “connectio
- What is the most efficient way to store measuremen
- Firebird: DBExpress or native components?
- Why does Firebird truncate decimal places when div
- How to input an array parameter of values to Fireb
Most probably it is "Database Parameter Buffer", and there is TPB for "Transaction...." and SPB for "Service ..." (used in Services API).
And Firebird 2.1.7 bugslist has the following quote:
I think those abbreviations were conceived more than 30 years ago, when the database today known as Firebird was being developed as proposed new component of VAX VMS operating system.
You may go Firebird-developers maillist and ask how current developers guess what DPB stand for. Or you may try to find mr. Starkey and mrs. Harrison and ask if they still remember what they meant more than 30 years ago.
This is described in two sources that I can see. And both use the same words.
It seems it does not matter which value the parameter has, it only sometime matters whether it is present or not.
To connect the database you call Firebird function
isc_attach_database
. This function takes 6 parameters. #5 is the length of DPB binary block and #6 is the pointer to DPB binary block.Example of building of binary DPB block you can find in the sources of your library of choice that you use to connect to firebird server.
For example with Unified Interbase library you can start exploring
examples\UIB\API\
projects. They all use calls likeThe last string being the parameter list. For trusted aithenticaton to work, according to the documentation quoted above, you have to remove
user_name
andpassword
parameters and optionally you may addtrusted_auth
parameter with any value. Then you can trace it down to thefunction CreateDBParams
, which creates the DPB binary representation out of your text key-value list string.PS. would you try to compile those examples - do not forget to configure UIB library to use Firebird 2.1 or higher API by enabling
FB21
option inuib.inc
file.