The SYSTEM_USER function returns the user name of the process at the time of the database attach. If you attach to the database specifying a user name and password in the USER and USING clauses, SQL returns the user name you specify. The resulting data type is CHAR(31).