BBjStoredProcedureData::getUserName

Description

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

Syntax

Return Value

Method

string

getUserName()

Parameters

None.

Return Values

None.

Remarks

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

ObjectVariables

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