Specifying User Name and Password
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_nameandisc_dpb_password, and pass the parameter buffer usingisc_attach_database(). - Add
isc_dpb_user_nameandisc_dpb_passwordparameters to an existing DPB withisc_expand_dpb().
For more information about the DPB, isc_attach_database(), and isc_expand_dpb(), see Working with Databases.