Consultor Eletrônico



Kbase P63798: How to determine what database or databases an application is trying to connect to when getting 1006
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/5/2009
Status: Unverified

GOAL:

How to determine what database or databases an application is trying to connect to when getting 1006 errors.

FACT(s) (Environment):

All Supported Operating Systems
Progress/OpenEdge Product Family

FIX:

When code is compiled against the wrong database or databases the error 1006 will occur as the code can not connect to the database or databases it is looking for.

When the 1006 error occurs there will be a file number (name) given.
The file name and path must be inserted in to the code below.
When the code is run it will list the database or databases being accessed by the code. If there are databases listed that should not be, then the code was compiled incorrectly and must be recompiled with only the databases that are required.

DEFINE VARIABLE cFileName AS CHARACTER NO-UNDO.
ASSIGN
cFileName = "<path-and-file-name>"
RCODE-INFOR:FILE-NAME = "<path-and-file-name>".
MESSAGE RCODE-INFO:DB-REFERENCES
VIEW-AS ALERT-BOX INFO BUTTONS OK.