UltraLite ActiveX User's Guide
UltraLite ActiveX API Reference
ULDatabaseManager class
OpenConnection( connparms As string ) As ULConnection
Member of UltraliteActiveX.ULDatabaseManager
If a database exists, use this method to connect to the database. If a database does not exist, or the connection parameters are invalid, the call will fail. Use the error object to determine why the call failed.
The function returns a ULConnection object which provides an open connection to a specified UltraLite database. The database filename is specified using the connparms string. Parameters are specified using a sequence of name=value pairs. If no user ID or password is given, the default is used.
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.
The example below shows how to use connection parameters in the OpenConnection method.
' eMbedded Visual Basic open_parms = "ce_file = \tutCustomer.udb" Set DatabaseMgr = CreateObject("UltraLite.ULDatabaseManager") Set Connection = DatabaseMgr.OpenConnection(open_parms)
// JScript open_parms = "ce_file = \\tutCustomer.udb"; DatabaseMgr = new ActiveXObject("UltraLite.ULDatabaseManager"); Connection = DatabaseMgr.OpenConnection(open_parms);