OpenDatabase()

Syntax

Result = OpenDatabase(#Database, DatabaseName$, User$, Password$ [, Plugin])
Description
Open the specified database. If #PB_Any is used as '#Database' parameter, the new database number will be returned to 'Result'. If 'Result' is 0, the database can't be found or the user/password is incorrect (the error text can be retrieved with DatabaseError()). Password$ can be a null string if no password is required. 'Plugin' is an optional parameter and can be one of the following value:
  #PB_Database_ODBC      : The database will use ODBC backend (UseODBCDatabase() has to be called).
  #PB_Database_SQLite    : The database will use SQLite backend (UseSQLiteDatabase() has to be called).
  #PB_Database_PostgreSQL: The database will use PostgreSQL backend (UsePostgreSQLDatabase() has to be called).
If 'Plugin' isn't specified, then the first registered database plugin will be used.

Supported OS

All

<- NextDatabaseRow() - Database Index - OpenDatabaseRequester() ->