Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
为数据库指定一个经过验证的用户。
Public Property UserID As String
public string UserID {get;set;}
ArgumentException 值包含分号,或以单引号或双引号开头。
指定数据库用户 ID 的字符串。缺省值为空值引用(在 Visual Basic 中为 Nothing)。
用户 ID 不区分大小写。
数据库最初是以一个名为 DBA 的已验证用户身份创建的。
如果用户 ID 和口令均未提供,则会使用口令为 sql 的用户 DBA。为使数据库更加安全,请更改用户 DBA 的口令,或者创建新的用户(使用 ULConnection.GrantConnectTo)并删除 DBA 用户(使用 ULConnection.RevokeConnectFrom)。