Re: Parallel Connections



Hatim wrote on Mon, 19 Dec 2005 03:49:02 -0800:

> Hi All,
> I am using VB6 & ADO 2.5 to get data from SQL Server.
> There are some queries that I run daily on our servers(using connections
> and recordsets in a single form in a VB project).
> A lot of these queries take a time(more than one minute).
> So,my problem here is that I wait all the queries to be executed
> separately (One by One).
> My question is:
> Are there a way to run many queries on many servers parallel at the same
> time on the same VB form.

I guess you could use one ADO object per query, and run them in Asychronous
mode. You can then loop to check the state of each object to determine when
they have completed running, and close down your app when they're all
finished. However, you'll have to take care of handling any deadlocks or
conflicts that occur, which could get messy.

Dan


.



Relevant Pages

  • Re: Form wont display worksheet format & it reverts back to single vi
    ... I've developed some forms which show the results of queries. ... worksheet format as designated in the form properties. ... it always reverts back to a single form only. ... Does anyone have any idea why it reverts back to a single form when it's ...
    (microsoft.public.access.forms)
  • Re: Please Help
    ... display on a single form. ... Queries give more flexibility. ... John ... >>Create a query that joins the various tables the way you ...
    (microsoft.public.access.gettingstarted)
  • Re: Parallel Connections
    ... Yuancai (Charlie) Ye ... > recordsets in a single form in a VB project). ... > A lot of these queries take a time. ...
    (microsoft.public.data.ado)
  • RE: Search Multiple Queries w/ One Search parameter
    ... Jerry Whittle wrote: ... open all the queries. ... search multiple queries on a single form. ...
    (microsoft.public.access.queries)
  • Re: Faster way to get record sets
    ... you came to the conclusion that your method of opening the recordsets was ... The "1" argument tells ADO that your data source is a sql statement ... query builder to run these queries (create a query in design view and switch ...
    (microsoft.public.inetserver.asp.db)