Search code examples
databasecommandadvantage-database-server

How do you create a new user with admin permissions in ADS?


What is the command to make a new user with administrator privileges in the Advantage Database Server?


Solution

  • With SQL you can do the following

    --Create User
    EXECUTE PROCEDURE sp_CreateUser('username', 'password', 'comment');
    
    --Add the user to the DB:Admin group
    EXECUTE PROCEDURE sp_AddUserToGroup('username','DB:Admin');