• SQL. The username and password are stored within the application, so it logs on with that.

    But in order for the user to get to the application in the first place, they have had to provide their own username and password, so the username is stored and passed to the various stored procedures.