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 - .NET 编程 » UltraLite .NET 2.0 API 参考 » ULConnectionParms 类

 

UserID 属性

为数据库指定一个经过验证的用户。

语法
Visual Basic
Public Property UserID As String
C#
public string  UserID { get; set; }
属性值

指定数据库用户 ID 的字符串。缺省值为空值引用(在 Visual Basic 中为 Nothing)。

注释

用户 ID 不区分大小写。

数据库最初是以一个名为 DBA 的已验证用户身份创建的。

如果用户 ID 和口令均未提供,则会使用口令为 sql 的用户 DBA。为使数据库更加安全,请更改用户 DBA 的口令,或者创建新的用户(使用 ULConnection.GrantConnectTo)并删除 DBA 用户(使用 ULConnection.RevokeConnectFrom)。

另请参见