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

SQL Anywhere 12.0.1 » UltraLite - C 及 C++ 编程 » 应用程序开发 » 使用嵌入式 SQL 开发 UltraLite C++ 应用程序

 

连接到 UltraLite 数据库

要从嵌入式 SQL 应用程序连接到 UltraLite 数据库,请在初始化 SQLCA 之后将 EXEC SQL CONNECT 语句包含到代码中。

CONNECT 语句具有以下格式:

EXEC SQL CONNECT USING
'uid=user-name;pwd=password;dbf=database-filename';

连接字符串(括在单引号中)可包括其它的数据库连接参数。

 另请参见

管理多个连接