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.