|
My code is somewhat complicated by the fact that the code is dynamic
and is
a sub procedure. It does not know what the table names are until they
are
passed in to the sub procedure. Table names cannot be hard coded. So
dynamic
SQL is the only answer that I am aware of.
I need some help to create a prepare statement that can use a parameter
marker. So far I have used
Declare
Prepare
Open
Fetch
Close
for every record processed.
The process works but it is slow.
My program is event based and updating is done in a service program,
processing 1 record at a time. When I have a batch of records (say 1000)
to
process, the service program does the above for every record. I would
like
to do the DECLARE, PREPARE and OPEN once only to save the cycles. The
service program does monitor for changed file names and automatically
closes
out and initializes for each new file to be processed.
Is there a way to use parameter markers (?) in the PREPARE once in the
code
executing Declare, Prepare and Open once and then simply executing the
FETCH
repeatedly for each call?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.