-- HANA DO BEGIN -- Replace the parameters below with your values (remove the '<' and '>') DECLARE aUser nvarchar(50) = ''; DECLARE aPassword nvarchar(255) = ''; DECLARE aCompany nvarchar(255) = ''; -- Do not change any code below this line. EXEC 'CREATE USER ' || aUser || ' PASSWORD ' || aPassword; EXEC 'ALTER USER ' || aUser || ' DISABLE PASSWORD LIFETIME'; EXEC 'GRANT PAL_ROLE TO ' || aUser; EXEC 'GRANT CATALOG READ TO ' || aUser; EXEC 'GRANT ALTER, CREATE ANY, DEBUG, DELETE, DROP, EXECUTE, INDEX, INSERT, REFERENCES, SELECT, TRIGGER, UPDATE ON SCHEMA ' || aCompany || ' TO ' || aUser; END;