Consultor Eletrônico



Kbase P18430: How does the USERID Function evaluates the userid?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/18/2006
Status: Unverified

GOAL:

How does the USERID Function evaluates the userid?

GOAL:

How does the SETUSERID Function assigns the userid?

FIX:

The USERID and the SETUSERID functions assigns the userid based on the following rules:
1. If
There are no records in the _User Table AND
The -U and -P Startup parameters are supplied?
Then
An error message is generated because the -U and -P are not allowed unless there are entries in the _User table.
2. If
There are no records in the _User Table AND
No -U or -P Startup parameters are supplied?
Then
The user id will be the OS user ID if available, or blank if not.

3. If
There are records in the _User Table AND
No -U or -P Startup parameters are supplied?
Then
The user id will be blank.
4. If
There are records in the _User Table AND
The -U and -P Startup parameters are Supplied AND
The -U userid and -P password match those in the _User table
Then
The user id will be that in the _User table.
5. If
There are records in the _User Table AND
The -U and -P Startup parameters are Supplied AND
The -U userid and -P password DO NOT match those in the _User table
Then
The user id will not be assigned.