Opens a connection to a named database.
OpenConnection( connparms As string ) As ULConnection
Member of UltraLiteAFLib.ULDatabaseManager
connparms The parameter used to establish a connection to a database. Parameters are specified as a semicolon-separated list of keyword=value pairs. If no user ID or password is given, the default is used.
The ULConnection object is returned if the connection was successful. This object provides an open connection to a specified UltraLite database. The database file name is specified using the connparms connection string. Parameters are specified using a sequence of name=value pairs. If no user ID or password is given, the default is used.
See Opening UltraLite connections with connection strings.
Use this method to connect to a database that is already created.
This method fails if:
The database does not exist.
The connection parameters are invalid.
To determine why the call failed, use the error object.
The following example creates a new database connection from the CustDB sample application.
Set Connection = DatabaseMgr.OpenConnection("UID=JDoe;PWD=ULdb; NT_FILE=c:\test\MyTestDB.udb;CE_FILE=\database\MyCEDB.udb;PALM_FILE=MyPalmDB_MyCreatorID")