|
|
ENTER
Connects a
PROGRAMident to the system.Usage
Embedded/Interactive/ODBC/JDBC.
Description
The specified ident becomes the current ident, provided that the password is correct.
The
identand thepasswordcan be specified either as a host variable or as a literal.A
PROGRAMident is set up to have certain privileges and access to the database which apply after theENTERstatement has been used and replace those that apply to the ident executing theENTERstatement.Restrictions
The
ENTERstatement may only be issued for idents of typePROGRAM.
ENTERmay not be used to log on to the system.To perform an
ENTERoperation for aPROGRAMident, the current ident must haveEXECUTEprivilege on that ident.The
ENTERstatement may not be issued inside a transaction.Notes
When the
ENTERoperation is successfully performed, the privileges granted to the new current ident apply and those granted to the previous current ident are suspended until thePROGRAMident is left, see LEAVE (PROGRAM ident).Example
ENTER 'TSTPRG' USING 'secret';Standard Compliance
|
Mimer Information Technology AB Voice: +46 18 780 92 00 Fax: +46 18 780 92 40 info@mimer.se |
|
|