Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
授予新的或现有的用户 ID 使用给定口令访问 UltraLite 数据库的权限。
public ul_ret_void ULGrantConnectToW( SQLCA * sqlca, ul_wchar const * uid, ul_wchar const * pwd )
sqlca 指向 SQLCA 的指针。
uid 保存用户 ID 的字符数组。最大长度为 16 个字符。
pwd 保存该用户 ID 的口令的字符数组。最大长度为 16 个字符。
此方法原型当您在 Win32 平台上引用 ULGrantConnectTo 和 #define the UNICODE 宏时内部使用。通常,您创建 UltraLite 应用程序时不会直接引用此方法。
如果指定了现有的用户 ID,则此函数更新该用户的口令。