To connect to an UltraLite database from an embedded SQL application, include the EXEC SQL CONNECT statement in your code after initializing the SQLCA.
The CONNECT statement has the following form:
EXEC SQL CONNECT USING 'uid=user-name;pwd=password;dbf=database-filename';
The connection string (enclosed in single quotes) may include additional database connection parameters.
Discuss this page in DocCommentXchange.
|Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1|