Consultor Eletrônico



Kbase P162676: How to find out the value set for -Mm parameter in a given session
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/29/2010
Status: Unverified

GOAL:

How to find out the value set for -Mm parameter in a given session

GOAL:

How to find what are values for client startup parameter via ABL

GOAL:

How to use STARTUP-PARAMETERS attribute for SESSION system handle

GOAL:

How to troubleshoot error 1150 trying to connect a database

GOAL:

Server has -Mm parm <size> and client has <size>. They must match. (1150)

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.x

FIX:

Use the following code in a 4GL/ABL session

DEF VAR i AS i.
DEF VAR v-param AS CHAR.
MESSAGE SESSION:STARTUP-PARAMETERS
VIEW-AS ALERT-BOX INFO BUTTONS OK.
DO i = 1 TO NUM-ENTRIES(SESSION:STARTUP-PARAMETERS):
IF SUBSTRING(ENTRY(i, SESSION:STARTUP-PARAMETERS), 1, 4) = "-Mm " /*make sure to add a space */
THEN ASSIGN v-param = ENTRY(i, SESSION:STARTUP-PARAMETERS).
END.
DISP v-param.