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

SQL Anywhere 11.0.1 (Français) » UltraLite - M-Business Anywhere Programming » UltraLite for M-Business Anywhere API reference » DatabaseManager class

 

openConnection method

Opens a connection to the database specified by parms.

Syntax
Connection openConnection( String parms)
Parameters
  • parms   A String holding the parameters for opening a connection as a set of keyword=value pairs. Parameter keywords are case-insensitive, and most values are case-sensitive.

Returns

An opened connection.

Remarks

If the database does not exist, an error is thrown. You can check Connection.sqlCode within the error catching code to identify the cause of the error.

Only one database may be active at a given time. Attempts to open a connection to different database while other connections are open result in an error.