BrianDHuff
Programmer
I have a very fun and interesting little challange.
Delphi 6.0 and MS Sql server using ADO for connection.
I have 1 table called Import_Raw
within this table there are about 250,000 records that are dumped in
from an import of Excel spreadsheets.
I perform several operations on the dataset, then have to dump back
out to Excel. Thats all pretty easy and no big deal.
However, at one point during my operations, I have to create and use
many adoQueries at runtime. There is no set number, so defining them
in design time is not easily done. It could be anywhere from 10 to
200 queries that I need to do.
So, what I am looking for help on is this:
What is the best way to create these queries during Runtime, and name
them indicidually something different?
with the following I'm close, but without names
var
Qbe1 : TadoQuery
Begin
qbe1.create(application);
with qbe1 do
begin
{assign params and such here}
do work
end;
thats no problem, the only problem is, I would have to define 200 or
so TadoQuery objects at design time, then come up with some way to
iterate through the names...
Im pretty comfortable in Delphi for the most part, this is just
getting a little deeper than I have gone before.
Any help is appreciated.
Brian
Delphi 6.0 and MS Sql server using ADO for connection.
I have 1 table called Import_Raw
within this table there are about 250,000 records that are dumped in
from an import of Excel spreadsheets.
I perform several operations on the dataset, then have to dump back
out to Excel. Thats all pretty easy and no big deal.
However, at one point during my operations, I have to create and use
many adoQueries at runtime. There is no set number, so defining them
in design time is not easily done. It could be anywhere from 10 to
200 queries that I need to do.
So, what I am looking for help on is this:
What is the best way to create these queries during Runtime, and name
them indicidually something different?
with the following I'm close, but without names
var
Qbe1 : TadoQuery
Begin
qbe1.create(application);
with qbe1 do
begin
{assign params and such here}
do work
end;
thats no problem, the only problem is, I would have to define 200 or
so TadoQuery objects at design time, then come up with some way to
iterate through the names...
Im pretty comfortable in Delphi for the most part, this is just
getting a little deeper than I have gone before.
Any help is appreciated.
Brian