Specifying User Name and Password

From InterBase
Jump to: navigation, search

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 and ­isc_dpb_password, and pass the parameter buffer using isc_attach_database().
  • Add isc_dpb_user_name and ­isc_dpb_password parameters to an existing DPB with isc_expand_dpb().

For more information about the DPB, isc_attach_database(), and ­isc_expand_dpb(), see Working with Databases.

Advance To: