函式:solid_connect()


solid_connect

连结至 solid 资料库。

语法: int solid_connect(string dsn, string user, string password, int [cursor_type]);

传回值: 整数

函式种类: 资料库功能

内容说明

本函式用来连结到 solid 资料库,传回值为连结的代号 ID 值。参数 dsn 为资料来源名称 (Data Sources Name)。参数 user 及 password 分别为连结的帐号及密码。参数 cursor_type 通常省略,其值有 SQL_CUR_USE_IF_NEEDED、SQL_CUR_USE_ODBC、SQL_CUR_USE_DRIVER 及 SQL_CUR_DEFAULT 等四种。当使用复杂的资料存取时可能会有类似 "Cannot open a cursor on a stored procedure that has anything other than a single select statement in it" 的错误讯息字串,此时若将参数 cursor_type 的值设为 SQL_CUR_USE_ODBC 就可以避开了。


[ 上一页 下一页 ]