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

SQL Anywhere 11.0.1 (中文) » UltraLite - 数据库管理和参考 » UltraLite 用作 MobiLink 客户端 » UltraLite 同步参数和网络协议选项 » UltraLite 的同步参数

 

User Name 同步参数

必需。MobiLink 服务器用于验证目的的字符串。

语法

根据所使用的 API 不同,语法会有所变化。还可以使用 ulsync 设置此参数。

注释

该参数是必需的。通常会拒绝空字符串和 NULL 字符串。

此参数没有缺省值,必须显式设置。

使用远程 ID 时,用户名不必唯一。请参见远程 ID

此 MobiLink 用户名和口令不同于任何数据库用户 ID 和口令,仅用于向 MobiLink 服务器识别和验证应用程序。请参见Password 同步参数

对于作为同步系统的组成部分的用户,您必须使用 MobiLink 服务器注册用户名。此用户名存储在统一数据库的 ml_user MobiLink 系统表的名称列中。

另请参见
示例

ulsync 可以将此参数按如下方法设置为扩展同步参数:

ulsync -c DBF=myuldb.udb "MobiLinkUid=remoteA;ScriptVersion=2;Stream=http"

UltraLite for C/C++ 应用程序可以按如下方法设置参数:

ul_synch_info info;
// ...
info.user_name= UL_TEXT( "remoteA" );