BBjStoredProcedureData::getPassword

Description

In BBj 6.0 and higher, this method returns this method returns the password used when opening the database connection that called the stored procedure.

Syntax

Return Value

Method

string

getPassword()

Parameters

None.

Return Values

None.

Remarks

Returns the password 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.