Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - AppForge Programming » UltraLite for AppForge API Reference » ULDatabaseManager class

DropDatabase method Next Page

OpenConnection method

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:

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;