Specifying User Name and Password
From InterBase
Go Up to Programming with the InterBase API
A client application must specify a user name and password when it attaches to a database. Failure to provide a valid user name and password combination results in an error. Use either of the following methods to provide user names and passwords:
- Create a database parameter buffer (DPB) with
isc_dpb_user_name
andisc_dpb_password
, and pass the parameter buffer usingisc_attach_database()
. - Add
isc_dpb_user_name
andisc_dpb_password
parameters to an existing DPB withisc_expand_dpb()
.
For more information about the DPB, isc_attach_database()
, and isc_expand_dpb()
, see Working with Databases.