Icon AddServerDatabaseUser Method

procedure AddServerDatabaseUser(const DatabaseName: String;
      const AuthorizedUser: String; RightsToAssign: TDatabaseRights)

Usage

Call the AddServerDatabaseUser method to add rights for an existing user to an existing database on a database server. Use the DatabaseName parameter to specify the existing database name, the AuthorizedUser parameter to specify the existing user, and the RightsToAssign parameter to specify the rights to give to the user for the database. You may use a wildcard (*) for the AuthorizedUser parameter. For example, you could specify just "*" for all users or "Accounting*" for all users whose user name begins with "Accounting".

Information This method is only valid when the engine is running as a database server and the EngineType is set to etServer.
Image