BBjStoredProcedureData::getUserName

Description

In BBj 6.00 and higher, this method returns the user who created the database connection that called the stored procedure.

Syntax

Return Value Method
String getUserName()

Parameters

None.

Return Value

Returns the user name for the database connection.

Example

rem 'A sample Stored Procedure program

rem 'Get a Stored Procedure object from the BBj File System
sp! = BBjAPI().getFileSystem().getStoredProcedureData()

rem 'Get the user who opened the connection that called this SPROC
user$ = sp!.getUserName()

rem 'Get the password the user used
pwd$ = sp!.getPassword()

See Also

BBjAPI

BBjStoredProcedureData::getPassword

Object Variables

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.