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.