Consultor Eletrônico



Kbase P103505: How to load data into a database from your application.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   21/04/2005
Status: Unverified

GOAL:

How to load data into a database from your application.

GOAL:

Can I use the .d generated from the dump data utility from within my application?

GOAL:

Can a .d file be loaded without using the load data utility?

FIX:

There is a procedure, prodict/load_d.p, which can be run which will call the regular load utilities for loading in a .d file from within your application. This procedure takes 2 INPUT parameters: The file name(s) for the tables to be loaded and the name of the directory where the .d?s reside. The format for the parameters is as follows:
file name: "ALL" or "<file-name> [,<filename>] ..."
directory: Name of the directory where .d files are

Syntax Examples:
Load all tables:
RUN prodict/load_d.p (INPUT ?ALL?, INPUT ?c:/data/?).

Load two tables
RUN prodict/load_d.p (INPUT ?customer,order?,
INPUT ?c:/data/?