Re: Executing lengthy query through ADO 2.7
From: Kskarthik001 (Kskarthik001_at_discussions.microsoft.com)
Date: 09/25/04
- Next message: Darshan: "Connecting to AS400"
- Previous message: JochenZ: "updating DataTable using DataGrid"
- In reply to: Val Mazur: "Re: Executing lengthy query through ADO 2.7"
- Next in thread: Val Mazur: "Re: Executing lengthy query through ADO 2.7"
- Reply: Val Mazur: "Re: Executing lengthy query through ADO 2.7"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 25 Sep 2004 06:39:03 -0700
Hi Val Mazur,
In my application, there will occur 2 scenarios to fetch the SAME bulk
of data from database using 2 different queries. In scenario 1, I will use a
short query(depending on user input in UI) to query the bulk of data. In this
scenario, ADO returns all the data successfully. But in scenario 2, I will be
supposed to use a large query(depending on other inputs from user) to fetch
the same bulk of data. Here, ADO is incapable to accomodate the lengthy query
to pass it to the driver. So, this scenario gets failed. By the by, there is
no way to reduce the lengthy query. size of query metrics: Characters with
spaces = 25,122
Pls provide a solution to handle the string size in ADO2.7
Regards,
karthik
"Val Mazur" wrote:
> Hi,
>
> If it is huge selection, then there is no magic and only way to do this is
> to increase hardware. I think there is something wrong in design of your
> application if you try to load huge result. There are usually better ways to
> accomplish some bulk actions.
>
> --
> Val Mazur
> Microsoft MVP
>
>
> "Kskarthik001" <Kskarthik001@discussions.microsoft.com> wrote in message
> news:735C62AA-CCEF-40F5-8A89-C8DAE361378A@microsoft.com...
> > Hi,
> > I am using ADO 2.7 in my MFC application. And I am using
> > Provider=OraOLEDB.Oracle.1 for Oracle 8.1.6
> > In that, I will be framing a lengthy query as a variant and executing that
> > query using Open method of RecordSet object. I am getting an error of
> > "Not enough storage is available to complete this operation".
> > If I reduce the query size by compromising some constraints, the query is
> > executing fine.
> > Please provide me a solution ASAP.
>
>
>
- Next message: Darshan: "Connecting to AS400"
- Previous message: JochenZ: "updating DataTable using DataGrid"
- In reply to: Val Mazur: "Re: Executing lengthy query through ADO 2.7"
- Next in thread: Val Mazur: "Re: Executing lengthy query through ADO 2.7"
- Reply: Val Mazur: "Re: Executing lengthy query through ADO 2.7"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|